Revert "Remove optional call"

This reverts commit 74c70627dc.
This commit is contained in:
Šimon Brandner committed 2023-08-16 15:38:23 +02:00
1 parent 74c70627dc
commit 3ea908c59f
1 file changed
+1 -1
+1 -1
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(() => {