use IsReady instead of checking for multiple statuses

This commit is contained in:
David Zhao
2021-01-10 22:09:36 -08:00
parent 7dcb88343a
commit 456df0fb91
7 changed files with 130 additions and 22 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func (r *Room) onTrackAdded(participant types.Participant, track types.Published
// skip publishing participant
continue
}
if existingParticipant.State() != livekit.ParticipantInfo_JOINED && existingParticipant.State() != livekit.ParticipantInfo_ACTIVE {
if !existingParticipant.IsReady() {
// not fully joined. don't subscribe yet
continue
}