From 9d4ade97b0bc65cfe01297dccc70b846ac1a76a8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 11 Oct 2023 16:10:03 +0100 Subject: [PATCH] Remove redundant check Co-authored-by: Timo <16718859+toger5@users.noreply.github.com> --- src/e2ee/sharedKeyManagement.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/e2ee/sharedKeyManagement.ts b/src/e2ee/sharedKeyManagement.ts index 1e06dffc..e8e75b55 100644 --- a/src/e2ee/sharedKeyManagement.ts +++ b/src/e2ee/sharedKeyManagement.ts @@ -43,8 +43,7 @@ const useKeyFromUrl = (): [string, string] | [undefined, undefined] => { const urlParams = useUrlParams(); useEffect(() => { - if (!urlParams.password) return; - if (urlParams.password === "") return; + if (!urlParams.password || !urlParams.roomId) return; if (!urlParams.roomId) return; setLocalStorageItem(