Fix race condition causing new participants to have stale room metadata (#1969)

If room metadata is changed in between when a participant is joining and
when they've became active, that participant will not have the latest
room metadata.
This commit is contained in:
David Zhao
2023-08-15 17:30:26 -07:00
committed by GitHub
parent 96fa2f896b
commit 13b1b4808f
+1 -3
View File
@@ -740,9 +740,7 @@ func (r *Room) sendRoomUpdate() {
roomInfo := r.ToProto()
// Send update to participants
for _, p := range r.GetParticipants() {
// new participants receive the update as part of JoinResponse
// skip inactive participants
if p.State() != livekit.ParticipantInfo_ACTIVE {
if !p.IsReady() {
continue
}