diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/invisibleChat/components/EncryptionModal.tsx | 2 |
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}> |