make this code a bit clearer

This commit is contained in:
Bruno Windels 2023-01-06 12:05:34 +01:00
parent fcb4f2a62d
commit cb0f803276

View File

@ -216,8 +216,8 @@ export class GroupCall extends EventEmitter<{change: never}> {
// you might be muted because you don't have a track or because // you might be muted because you don't have a track or because
// you actively chosen to mute // you actively chosen to mute
// (which we want to respect in the future when you add a track) // (which we want to respect in the future when you add a track)
muteSettings.updateTrackInfo(joinedData.localMedia.userMedia);
joinedData.localMuteSettings = muteSettings; joinedData.localMuteSettings = muteSettings;
joinedData.localMuteSettings.updateTrackInfo(joinedData.localMedia.userMedia);
if (!prevMuteSettings.equals(muteSettings)) { if (!prevMuteSettings.equals(muteSettings)) {
await Promise.all(Array.from(this._members.values()).map(m => { await Promise.all(Array.from(this._members.values()).map(m => {
return m.setMuted(joinedData.localMuteSettings); return m.setMuted(joinedData.localMuteSettings);