deprecate inconsistencies in event properties

This commit is contained in:
Hiroshi Horie
2022-01-11 00:51:16 +07:00
parent a6a4e18551
commit 7799e35c13
3 changed files with 25 additions and 16 deletions
+2 -2
View File
@@ -111,8 +111,8 @@ abstract class TrackPublication<T extends Track> extends Disposable {
}
// emit events
final newEvent = event.muted
? TrackMutedEvent(participant: participant, track: this)
: TrackUnmutedEvent(participant: participant, track: this);
? TrackMutedEvent(participant: participant, publication: this)
: TrackUnmutedEvent(participant: participant, publication: this);
[participant.events, participant.room.events].emit(newEvent);
}