copy track info when toggling mute (#3406)

* copy track info when toggling mute

* test
This commit is contained in:
Paul Wells
2025-02-05 20:12:11 -08:00
committed by GitHub
parent aeec75edeb
commit d8e325d3d4
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ func TestMuteSetting(t *testing.T) {
p.pendingTracks["cid"] = &pendingTrackInfo{trackInfos: []*livekit.TrackInfo{ti}}
p.SetTrackMuted(livekit.TrackID(ti.Sid), true, false)
require.True(t, ti.Muted)
require.True(t, p.pendingTracks["cid"].trackInfos[0].Muted)
})
t.Run("can publish a muted track", func(t *testing.T) {