From cb0f803276106d608238aebeedc62256644d83fd Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 6 Jan 2023 12:05:34 +0100 Subject: [PATCH] make this code a bit clearer --- src/matrix/calls/group/GroupCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/calls/group/GroupCall.ts b/src/matrix/calls/group/GroupCall.ts index 0931d4ea..d65ea838 100644 --- a/src/matrix/calls/group/GroupCall.ts +++ b/src/matrix/calls/group/GroupCall.ts @@ -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 actively chosen to mute // (which we want to respect in the future when you add a track) + muteSettings.updateTrackInfo(joinedData.localMedia.userMedia); joinedData.localMuteSettings = muteSettings; - joinedData.localMuteSettings.updateTrackInfo(joinedData.localMedia.userMedia); if (!prevMuteSettings.equals(muteSettings)) { await Promise.all(Array.from(this._members.values()).map(m => { return m.setMuted(joinedData.localMuteSettings);