Include self in speaker updates (#301)
This commit is contained in:
@@ -510,7 +510,7 @@ func (p *ParticipantImpl) SendSpeakerUpdate(speakers []*livekit.SpeakerInfo) err
|
|||||||
|
|
||||||
var scopedSpeakers []*livekit.SpeakerInfo
|
var scopedSpeakers []*livekit.SpeakerInfo
|
||||||
for _, s := range speakers {
|
for _, s := range speakers {
|
||||||
if p.IsSubscribedTo(s.Sid) {
|
if p.IsSubscribedTo(s.Sid) || s.Sid == p.ID() {
|
||||||
scopedSpeakers = append(scopedSpeakers, s)
|
scopedSpeakers = append(scopedSpeakers, s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user