Skip to content

Commit

Permalink
Only emit TrackSubscriptionEvent once on room (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Jan 31, 2025
1 parent 780f98a commit ecf37c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-mice-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Only emit TrackSubscriptionEvent once on room
3 changes: 0 additions & 3 deletions src/room/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2042,9 +2042,6 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
this.emit(RoomEvent.TrackUnsubscribed, track, publication, participant);
},
)
.on(ParticipantEvent.TrackSubscriptionFailed, (sid: string) => {
this.emit(RoomEvent.TrackSubscriptionFailed, sid, participant);
})
.on(ParticipantEvent.TrackMuted, (pub: TrackPublication) => {
this.emitWhenConnected(RoomEvent.TrackMuted, pub, participant);
})
Expand Down

0 comments on commit ecf37c4

Please sign in to comment.