diff --git a/app/src/RoomClient.js b/app/src/RoomClient.js index 261cf90c..ee680f60 100644 --- a/app/src/RoomClient.js +++ b/app/src/RoomClient.js @@ -1398,7 +1398,6 @@ export default class RoomClient start ) { - if (this._webcamProducer) await this.disableWebcam(); @@ -2788,7 +2787,7 @@ export default class RoomClient const { id, displayName, picture, roles } = notification.data; store.dispatch(peerActions.addPeer( - { id, displayName, picture, roles, consumers: [] })); + { id, displayName, picture, roles, consumers: [] })); this._spotlights.newPeer(id); @@ -3291,7 +3290,8 @@ export default class RoomClient if ( joinVideo && this._havePermission(permissions.SHARE_VIDEO) - ){ + ) + { this.updateWebcam({ start: true }); } if ( @@ -3310,8 +3310,6 @@ export default class RoomClient if (autoMuteThreshold && peers.length >= autoMuteThreshold) this.muteMic(); } - - } await this._updateAudioOutputDevices(); diff --git a/app/src/Spotlights.js b/app/src/Spotlights.js index 09f7f1cb..85987ed8 100644 --- a/app/src/Spotlights.js +++ b/app/src/Spotlights.js @@ -26,7 +26,6 @@ export default class Spotlights this._spotlightsUpdated(); } - peerInSpotlights(peerId) { return this._currentSpotlights.indexOf(peerId) !== -1; @@ -37,7 +36,7 @@ export default class Spotlights logger.debug('addPeerToSpotlight() [peerId:"%s"]', peerId); this._selectedSpotlights = [ ...this._selectedSpotlights, peerId ]; - this._spotlightsUpdated(); + this._spotlightsUpdated(); } removePeerSpotlight(peerId) @@ -48,7 +47,7 @@ export default class Spotlights this._selectedSpotlights.filter((peer) => peer !== peerId); - this._spotlightsUpdated(); + this._spotlightsUpdated(); } clearSpotlights() @@ -125,7 +124,7 @@ export default class Spotlights } if (!this._arraysEqual( - this._currentSpotlights, spotlights.slice(0, maxSpotlights))) + this._currentSpotlights, spotlights.slice(0, maxSpotlights))) { logger.debug('_spotlightsUpdated() | spotlights updated, emitting');