Revert "Remove optional call"

This reverts commit 74c70627dc.
This commit is contained in:
Šimon Brandner
2023-08-16 15:38:23 +02:00
parent 74c70627dc
commit 3ea908c59f

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(() => {