Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(conference) remove dead code

Saúl Ibarra Corretgé599ed103259e
diff --git a/conference.js b/conference.js
index 11d1b575f4..80601314d5 100644
--- a/conference.js
+++ b/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());