don't send datatrack info to client (#492)

* don't send datatrack info to client
This commit is contained in:
cnderrauber
2022-03-08 17:05:26 +08:00
committed by GitHub
parent d57f76fbef
commit 128199e634
11 changed files with 47 additions and 28 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ func (r *Room) Join(participant types.LocalParticipant, opts *ParticipantOptions
otherParticipants := make([]*livekit.ParticipantInfo, 0, len(r.participants))
for _, p := range r.participants {
if p.ID() != participant.ID() && !p.Hidden() {
otherParticipants = append(otherParticipants, p.ToProto())
otherParticipants = append(otherParticipants, p.ToProto(true))
}
}