Dont ignore rest of url (#1555)
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user