Skip to content

Commit 937a538

Browse files
authored
Return publication of Track.Source.Unknown in getTrack (#619)
* Return publication of Track.Source.Unknown in getTrack * Create .changeset/soft-bikes-lick.md
1 parent 2152c7e commit 937a538

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changeset/soft-bikes-lick.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"livekit-client": minor
3+
---
4+
5+
Return publication of Track.Source.Unknown in getTrack

src/room/participant/Participant.ts

-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ export default class Participant extends (EventEmitter as new () => TypedEmitter
9292
* @returns
9393
*/
9494
getTrack(source: Track.Source): TrackPublication | undefined {
95-
if (source === Track.Source.Unknown) {
96-
return;
97-
}
9895
for (const [, pub] of this.tracks) {
9996
if (pub.source === source) {
10097
return pub;

0 commit comments

Comments
 (0)