Automatically enter session also in non widget mode when skipLobby = true

This commit is contained in:
Timo
2024-11-11 17:34:21 +01:00
parent 5359c5089c
commit ba9f1e438b
2 changed files with 8 additions and 1 deletions

View File

@@ -134,6 +134,13 @@ export const GroupCallView: FC<Props> = ({
const latestMuteStates = useRef<MuteStates>();
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,

View File

@@ -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) {