Fix: mute Remote mute/unmute events (#54)

* fix

* format
This commit is contained in:
Hiroshi Horie
2021-12-12 14:01:58 +07:00
committed by GitHub
parent 2b88ffd5f9
commit b85ecc1588
6 changed files with 44 additions and 47 deletions
+9 -1
View File
@@ -139,7 +139,15 @@ abstract class Track extends DisposableChangeNotifier
}
@internal
void updateMuted(bool muted) => _muted = muted;
void updateMuted(bool muted, {bool shouldSendSignal = false}) {
if (_muted == muted) return;
_muted = muted;
events.emit(InternalTrackMuteUpdatedEvent(
track: this,
muted: muted,
shouldSendSignal: shouldSendSignal,
));
}
@internal
void updateMediaStreamAndTrack(