Include self in speaker updates (#301)

This commit is contained in:
Raja Subramanian
2021-12-29 22:07:35 +05:30
committed by GitHub
parent dc385f5d24
commit fe06b46e94
+1 -1
View File
@@ -510,7 +510,7 @@ func (p *ParticipantImpl) SendSpeakerUpdate(speakers []*livekit.SpeakerInfo) err
var scopedSpeakers []*livekit.SpeakerInfo
for _, s := range speakers {
if p.IsSubscribedTo(s.Sid) {
if p.IsSubscribedTo(s.Sid) || s.Sid == p.ID() {
scopedSpeakers = append(scopedSpeakers, s)
}
}