don't send participant updates to closed participants (typo fix)
This commit is contained in:
+1
-1
@@ -195,7 +195,7 @@ func (r *Room) broadcastParticipantState(p types.Participant) {
|
|||||||
updates := ToProtoParticipants([]types.Participant{p})
|
updates := ToProtoParticipants([]types.Participant{p})
|
||||||
for _, op := range r.participants {
|
for _, op := range r.participants {
|
||||||
// skip itself && closed participants
|
// skip itself && closed participants
|
||||||
if p.ID() == op.ID() || p.State() == livekit.ParticipantInfo_DISCONNECTED {
|
if p.ID() == op.ID() || op.State() == livekit.ParticipantInfo_DISCONNECTED {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user