don't send participant updates to closed participants (typo fix)

This commit is contained in:
David Zhao
2021-01-28 01:00:48 -08:00
parent 0813a55617
commit 0e48711e4b
+1 -1
View File
@@ -195,7 +195,7 @@ func (r *Room) broadcastParticipantState(p types.Participant) {
updates := ToProtoParticipants([]types.Participant{p})
for _, op := range r.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
}