fix(conference) remove dead code

Went for a different approach, this code is dead now.
pull/10477/head
Saúl Ibarra Corretgé 3 years ago committed by Дамян Минков
parent fb9d28a667
commit 599ed10325
  1. 26
      conference.js

@ -1328,7 +1328,7 @@ export default {
/**
* Used by the Breakout Rooms feature to join a breakout room or go back to the main room.
*/
async joinRoom(roomName, isBreakoutRoom = false) {
async joinRoom(roomName) {
this.roomName = roomName;
const { tryCreateLocalTracks, errors } = this.createInitialLocalTracks();
@ -1341,33 +1341,15 @@ export default {
track.mute();
}
});
this._createRoom(localTracks, isBreakoutRoom);
this._createRoom(localTracks);
return new Promise((resolve, reject) => {
new ConferenceConnector(resolve, reject).connect();
});
},
_createRoom(localTracks, isBreakoutRoom = false) {
const extraOptions = {};
if (isBreakoutRoom) {
// We must be in a room already.
if (!room?.xmpp?.breakoutRoomsComponentAddress) {
throw new Error('Breakout Rooms not enabled');
}
// TODO: re-evaluate this. -saghul
extraOptions.customDomain = room.xmpp.breakoutRoomsComponentAddress;
}
room
= connection.initJitsiConference(
APP.conference.roomName,
{
...this._getConferenceOptions(),
...extraOptions
});
_createRoom(localTracks) {
room = connection.initJitsiConference(APP.conference.roomName, this._getConferenceOptions());
// Filter out the tracks that are muted (except on Safari).
const tracks = browser.isWebKitBased() ? localTracks : localTracks.filter(track => !track.isMuted());

Loading…
Cancel
Save