Do not remove participant from cache on disconnect. (#4241)

Resuming participants need to know about participants disconnected
during resume.

Reverts https://github.com/livekit/livekit/pull/4234
This commit is contained in:
Raja Subramanian
2026-01-14 20:18:58 +05:30
committed by GitHub
parent a35a6ae751
commit f867550716

View File

@@ -118,10 +118,6 @@ func (p *ParticipantImpl) SendParticipantUpdate(participantsToUpdate []*livekit.
})
validUpdates = append(validUpdates, pi)
}
if pi.State == livekit.ParticipantInfo_DISCONNECTED {
p.updateCache.Remove(pID)
}
}
p.updateLock.Unlock()