Populate disconnect updates with participant identity (#2310)

This commit is contained in:
lukasIO
2023-12-13 15:32:25 +01:00
committed by GitHub
parent dfcafff955
commit 23b46042cc
+4 -3
View File
@@ -212,9 +212,10 @@ func (p *ParticipantImpl) sendDisconnectUpdatesForReconnect() error {
break break
} else if info.state == livekit.ParticipantInfo_DISCONNECTED { } else if info.state == livekit.ParticipantInfo_DISCONNECTED {
disconnectedParticipants = append(disconnectedParticipants, &livekit.ParticipantInfo{ disconnectedParticipants = append(disconnectedParticipants, &livekit.ParticipantInfo{
Sid: string(keys[i]), Sid: string(keys[i]),
Version: info.version, Identity: string(p.Identity()),
State: livekit.ParticipantInfo_DISCONNECTED, Version: info.version,
State: livekit.ParticipantInfo_DISCONNECTED,
}) })
} }
} }