Merge pull request #462 from vector-im/dbkr/bypass_lobby_in_embed_mode
Bypass lobby in embedded mode
This commit is contained in:
@@ -61,7 +61,10 @@ export function GroupCallView({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.groupCall = groupCall;
|
window.groupCall = groupCall;
|
||||||
}, [groupCall]);
|
|
||||||
|
// In embedded mode, bypass the lobby and just enter the call straight away
|
||||||
|
if (isEmbedded) groupCall.enter();
|
||||||
|
}, [groupCall, isEmbedded]);
|
||||||
|
|
||||||
useSentryGroupCallHandler(groupCall);
|
useSentryGroupCallHandler(groupCall);
|
||||||
|
|
||||||
@@ -127,6 +130,13 @@ export function GroupCallView({
|
|||||||
);
|
);
|
||||||
} else if (left) {
|
} else if (left) {
|
||||||
return <CallEndedView client={client} />;
|
return <CallEndedView client={client} />;
|
||||||
|
} else {
|
||||||
|
if (isEmbedded) {
|
||||||
|
return (
|
||||||
|
<FullScreenView>
|
||||||
|
<h1>Loading room...</h1>
|
||||||
|
</FullScreenView>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<LobbyView
|
<LobbyView
|
||||||
@@ -148,4 +158,5 @@ export function GroupCallView({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user