aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/invisibleChat/components
diff options
context:
space:
mode:
authorSammy <sammy@sammcheese.net>2023-08-16 00:57:56 +0200
committerGitHub <noreply@github.com>2023-08-16 00:57:56 +0200
commit55b755b2df7e186df8fb253742478bca146fbf46 (patch)
treee69481455f6929eafa549a22262de709269c9759 /src/plugins/invisibleChat/components
parentca439e9e9a80ce79a1c693fb56f7b7faea8be7c1 (diff)
downloadVencord-55b755b2df7e186df8fb253742478bca146fbf46.tar.gz
Vencord-55b755b2df7e186df8fb253742478bca146fbf46.tar.bz2
Vencord-55b755b2df7e186df8fb253742478bca146fbf46.zip
InvisibleChat: improve encryption validator (#1646)
Diffstat (limited to 'src/plugins/invisibleChat/components')
-rw-r--r--src/plugins/invisibleChat/components/EncryptionModal.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/invisibleChat/components/EncryptionModal.tsx b/src/plugins/invisibleChat/components/EncryptionModal.tsx
index 570b4c0..f893680 100644
--- a/src/plugins/invisibleChat/components/EncryptionModal.tsx
+++ b/src/plugins/invisibleChat/components/EncryptionModal.tsx
@@ -35,7 +35,7 @@ function EncModal(props: ModalProps) {
const [password, setPassword] = React.useState("password");
const [noCover, setNoCover] = React.useState(false);
- const isValid = secret && (noCover || (cover && /\w \w/.test(cover)));
+ const isValid = secret && (noCover || (cover && cover.trim().split(" ").length > 1));
return (
<ModalRoot {...props}>