From 3ea908c59f0df40088bbec7486aae9cdec1daf0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 16 Aug 2023 15:38:23 +0200 Subject: [PATCH] Revert "Remove optional call" This reverts commit 74c70627dcbb5ef6cd266727acaae9e7eff567a3. --- src/e2ee/sharedKeyManagement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2ee/sharedKeyManagement.ts b/src/e2ee/sharedKeyManagement.ts index 07060419..819c16d9 100644 --- a/src/e2ee/sharedKeyManagement.ts +++ b/src/e2ee/sharedKeyManagement.ts @@ -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(() => {