fix(rn,breakout-rooms) create desired local tracks when joining rooms

This commit is contained in:
Saúl Ibarra Corretgé 2021-12-10 11:57:26 +01:00 committed by Saúl Ibarra Corretgé
parent 9279586e8c
commit 7f0cfed981
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import {
} from '../base/conference';
import { setAudioMuted, setVideoMuted } from '../base/media';
import { getRemoteParticipants } from '../base/participants';
import { createDesiredLocalTracks } from '../base/tracks/actions';
import {
NOTIFICATION_TIMEOUT_TYPE,
clearNotifications,
@ -216,6 +217,7 @@ export function moveToRoom(roomId?: string) {
dispatch(createConference(_roomId));
dispatch(setAudioMuted(audio.muted));
dispatch(setVideoMuted(video.muted));
dispatch(createDesiredLocalTracks());
} else {
try {
await APP.conference.leaveRoom(false /* doDisconnect */);