We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2152c7e commit 937a538Copy full SHA for 937a538
.changeset/soft-bikes-lick.md
@@ -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
@@ -92,9 +92,6 @@ export default class Participant extends (EventEmitter as new () => TypedEmitter
92
* @returns
93
*/
94
getTrack(source: Track.Source): TrackPublication | undefined {
95
- if (source === Track.Source.Unknown) {
96
- return;
97
- }
98
for (const [, pub] of this.tracks) {
99
if (pub.source === source) {
100
return pub;
0 commit comments