fix(breakout-room, rn): joining room

This commit is contained in:
Werner Fleischer 2023-01-10 11:36:37 +01:00 committed by Saúl Ibarra Corretgé
parent 46f1cb7b4b
commit e8bd75b2d1
2 changed files with 2 additions and 4 deletions

View File

@ -501,7 +501,7 @@ export function conferenceWillLeave(conference: IJitsiConference) {
* from Redux. * from Redux.
* @returns {Function} * @returns {Function}
*/ */
export function createConference(overrideRoom?: string) { export function createConference(overrideRoom?: string | String) {
return (dispatch: IStore['dispatch'], getState: IStore['getState']) => { return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {
const state = getState(); const state = getState();
const { connection, locationURL } = state['features/base/connection']; const { connection, locationURL } = state['features/base/connection'];

View File

@ -215,9 +215,7 @@ export function moveToRoom(roomId?: string) {
} }
dispatch(clearNotifications()); dispatch(clearNotifications());
dispatch(createConference(_roomId));
// dispatch(setRoom(_roomId));
dispatch(createConference(_roomId?.toString()));
dispatch(setAudioMuted(audio.muted)); dispatch(setAudioMuted(audio.muted));
dispatch(setVideoMuted(Boolean(video.muted))); dispatch(setVideoMuted(Boolean(video.muted)));
dispatch(createDesiredLocalTracks()); dispatch(createDesiredLocalTracks());