From 7f0b26698124fd3a2f0db538673f001edacea5d7 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Wed, 18 Dec 2024 02:27:55 +0300 Subject: [PATCH] Update WaitingRoom.js --- react/src/pages/WaitingRoom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react/src/pages/WaitingRoom.js b/react/src/pages/WaitingRoom.js index 18f7e5fd..722ed587 100755 --- a/react/src/pages/WaitingRoom.js +++ b/react/src/pages/WaitingRoom.js @@ -24,6 +24,7 @@ import {getUrlParameter} from "@antmedia/webrtc_adaptor"; import {getRootAttribute, isComponentMode} from "utils"; import {useTheme} from "@mui/material/styles"; import TalkingIndicator from "../Components/TalkingIndicator"; +import {ConferenceContext} from "./AntMedia"; function getPublishStreamId() { @@ -39,6 +40,7 @@ if (enterDirectly == null || typeof enterDirectly === "undefined") { function WaitingRoom(props) { // eslint-disable-next-line react-hooks/rules-of-hooks const id = (isComponentMode()) ? getRootAttribute("data-room-name") : useParams().id; + window.conference = React.useContext(ConferenceContext); const publishStreamId = getPublishStreamId() const {t} = useTranslation(); const [dialogOpen, setDialogOpen] = React.useState(false);