fix(breakout-rooms) fix not waiting to leave the room
We need to wait for it before we start joining.
This commit is contained in:
parent
bfc0567e32
commit
ae3fb20d65
|
@ -218,7 +218,7 @@ export function moveToRoom(roomId?: string) {
|
||||||
dispatch(setVideoMuted(video.muted));
|
dispatch(setVideoMuted(video.muted));
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
APP.conference.leaveRoom(false /* doDisconnect */);
|
await APP.conference.leaveRoom(false /* doDisconnect */);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.warn('APP.conference.leaveRoom() rejected with:', error);
|
logger.warn('APP.conference.leaveRoom() rejected with:', error);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue