From 74c70627dcbb5ef6cd266727acaae9e7eff567a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 16 Aug 2023 15:35:49 +0200 Subject: [PATCH] Remove optional call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- 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 819c16d9..07060419 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(() => {