@@ -19,7 +19,7 @@ import { useLocation } from "react-router-dom";
|
|||||||
|
|
||||||
import { Config } from "./config/Config";
|
import { Config } from "./config/Config";
|
||||||
|
|
||||||
const PASSWORD_STRING = "?password=";
|
export const PASSWORD_STRING = "?password=";
|
||||||
|
|
||||||
interface UrlParams {
|
interface UrlParams {
|
||||||
roomAlias: string | null;
|
roomAlias: string | null;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import { Config } from "../config/Config";
|
|||||||
import { MuteStates, useMuteStates } from "./MuteStates";
|
import { MuteStates, useMuteStates } from "./MuteStates";
|
||||||
import { useMediaDevices, MediaDevices } from "../livekit/MediaDevicesContext";
|
import { useMediaDevices, MediaDevices } from "../livekit/MediaDevicesContext";
|
||||||
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
|
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
|
||||||
import { useUrlParams } from "../UrlParams";
|
import { PASSWORD_STRING, useUrlParams } from "../UrlParams";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
@@ -258,7 +258,7 @@ export function GroupCallView({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const originalHash = location.hash;
|
const originalHash = location.hash;
|
||||||
const hash = originalHash === "" ? "#" : originalHash;
|
const hash = originalHash === "" ? "#" : originalHash;
|
||||||
const [hashStart, password] = hash.split("?password=");
|
const [hashStart, password] = hash.split(PASSWORD_STRING);
|
||||||
|
|
||||||
if (password !== e2eeSharedKey) return;
|
if (password !== e2eeSharedKey) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user