Skip to content

Commit d521f97

Browse files
authored
Merge pull request #2754 from robintown/unblock-mute
Don't block muting/unmuting on network requests
2 parents ce3b72c + c0a5299 commit d521f97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webrtc/groupCall.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ export class GroupCall extends TypedEventEmitter<
505505
setTracksEnabled(call.localUsermediaFeed.stream.getAudioTracks(), !muted);
506506
}
507507

508+
this.emit(GroupCallEvent.LocalMuteStateChanged, muted, this.isLocalVideoMuted());
509+
508510
if (!sendUpdatesBefore) {
509511
try {
510512
await Promise.all(this.calls.map(c => c.sendMetadataUpdate()));
@@ -513,7 +515,6 @@ export class GroupCall extends TypedEventEmitter<
513515
}
514516
}
515517

516-
this.emit(GroupCallEvent.LocalMuteStateChanged, muted, this.isLocalVideoMuted());
517518
return true;
518519
}
519520

0 commit comments

Comments
 (0)