From 51f87fa42ab8b1e5b8dca0b575de169b9c4e9bc5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 10 Oct 2023 17:06:49 +0100 Subject: [PATCH] Add comment Co-authored-by: Timo <16718859+toger5@users.noreply.github.com> --- src/e2ee/sharedKeyManagement.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/e2ee/sharedKeyManagement.ts b/src/e2ee/sharedKeyManagement.ts index 61f26373..ce0845dc 100644 --- a/src/e2ee/sharedKeyManagement.ts +++ b/src/e2ee/sharedKeyManagement.ts @@ -44,6 +44,9 @@ const useKeyFromUrl = (roomId: string): string | null => { if (!urlParams.roomId) return; setLocalStorageItem( + // We set the Item by only using data from the url. This way we + // make sure, we always have matching pairs in the LocalStorage, + // as they occur in the call links. getRoomSharedKeyLocalStorageKey(urlParams.roomId), urlParams.password );