mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +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>();
|
const latestMuteStates = useRef<MuteStates>();
|
||||||
latestMuteStates.current = 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(() => {
|
useEffect(() => {
|
||||||
const defaultDeviceSetup = async (
|
const defaultDeviceSetup = async (
|
||||||
requestedDeviceData: JoinCallData,
|
requestedDeviceData: JoinCallData,
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export const RoomPage: FC = () => {
|
|||||||
if (groupCallState.kind === "loaded" && wasInWaitForInviteState) {
|
if (groupCallState.kind === "loaded" && wasInWaitForInviteState) {
|
||||||
logger.log("Play join sound 'Not yet implemented'");
|
logger.log("Play join sound 'Not yet implemented'");
|
||||||
}
|
}
|
||||||
});
|
}, [groupCallState.kind]);
|
||||||
|
|
||||||
const groupCallView = useCallback((): JSX.Element => {
|
const groupCallView = useCallback((): JSX.Element => {
|
||||||
switch (groupCallState.kind) {
|
switch (groupCallState.kind) {
|
||||||
|
|||||||
Reference in New Issue
Block a user