Skip to content

Commit

Permalink
Update WaitingRoom.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 17, 2024
1 parent cf6d4a5 commit 7f0b266
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react/src/pages/WaitingRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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);
Expand Down

0 comments on commit 7f0b266

Please sign in to comment.