Dont ignore rest of url (#1555)

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo
2023-09-20 16:26:09 +02:00
committed by GitHub
parent 4842b2a89b
commit 5c377ba01d

View File

@@ -59,7 +59,7 @@ export const useManageRoomSharedKey = (roomId: string): string | null => {
if (password !== e2eeSharedKey) return; if (password !== e2eeSharedKey) return;
const [hashStart, passwordStart] = hash.split(PASSWORD_STRING); const [hashStart, passwordStart] = hash.split(PASSWORD_STRING);
const hashEnd = passwordStart.split("&")[1]; const hashEnd = passwordStart.split("&").slice(1).join("&");
location.replace((hashStart ?? "") + (hashEnd ?? "")); location.replace((hashStart ?? "") + (hashEnd ?? ""));
}, [password, e2eeSharedKey]); }, [password, e2eeSharedKey]);