diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 88d79140..81895aa8 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -134,6 +134,13 @@ export const GroupCallView: FC = ({ const latestMuteStates = useRef(); latestMuteStates.current = muteStates; + useEffect(() => { + // skip lobby if we are not in widget mode; + if (!widget && skipLobby) { + void enterRTCSession(rtcSession, perParticipantE2EE); + } + }, [perParticipantE2EE, rtcSession, skipLobby]); + useEffect(() => { const defaultDeviceSetup = async ( requestedDeviceData: JoinCallData, diff --git a/src/room/RoomPage.tsx b/src/room/RoomPage.tsx index bce3cfef..11d5881e 100644 --- a/src/room/RoomPage.tsx +++ b/src/room/RoomPage.tsx @@ -91,7 +91,7 @@ export const RoomPage: FC = () => { if (groupCallState.kind === "loaded" && wasInWaitForInviteState) { logger.log("Play join sound 'Not yet implemented'"); } - }); + }, [groupCallState.kind]); const groupCallView = useCallback((): JSX.Element => { switch (groupCallState.kind) {