Bypass lobby in embedded mode
This commit is contained in:
parent
aeec2c076e
commit
b31c6c6780
1 changed files with 31 additions and 20 deletions
|
@ -61,7 +61,10 @@ export function GroupCallView({
|
|||
|
||||
useEffect(() => {
|
||||
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);
|
||||
|
||||
|
@ -127,6 +130,13 @@ export function GroupCallView({
|
|||
);
|
||||
} else if (left) {
|
||||
return <CallEndedView client={client} />;
|
||||
} else {
|
||||
if (isEmbedded) {
|
||||
return (
|
||||
<FullScreenView>
|
||||
<h1>Loading room...</h1>
|
||||
</FullScreenView>,
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<LobbyView
|
||||
|
@ -148,4 +158,5 @@ export function GroupCallView({
|
|||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue