Remove optional call

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-08-16 15:35:49 +02:00
parent b4b33563be
commit 74c70627dc

View File

@@ -47,7 +47,7 @@ export const useManageRoomSharedKey = (roomId: string): string | null => {
if (password === "") return;
if (password === e2eeSharedKey) return;
setE2EESharedKey?.(password);
setE2EESharedKey(password);
}, [password, e2eeSharedKey, setE2EESharedKey]);
useEffect(() => {