mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
Automatically enter session also in non widget mode when skipLobby = true
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user