diff --git a/src/plugins/invisibleChat/components/EncryptionModal.tsx b/src/plugins/invisibleChat/components/EncryptionModal.tsx index 570b4c07..f893680d 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 (