short circuit participant broadcast filter in livestream mode (#3955)
This commit is contained in:
+3
-3
@@ -2028,10 +2028,10 @@ func GetOtherParticipantInfo(
|
|||||||
|
|
||||||
pInfos := make([]*livekit.ParticipantInfo, 0, len(allParticipants))
|
pInfos := make([]*livekit.ParticipantInfo, 0, len(allParticipants))
|
||||||
for _, op := range allParticipants {
|
for _, op := range allParticipants {
|
||||||
if !op.Hidden() &&
|
if !(skipSubscriberBroadcast && op.CanSkipBroadcast()) &&
|
||||||
|
!op.Hidden() &&
|
||||||
op.Identity() != lpIdentity &&
|
op.Identity() != lpIdentity &&
|
||||||
!isMigratingIn &&
|
!isMigratingIn {
|
||||||
!(skipSubscriberBroadcast && op.CanSkipBroadcast()) {
|
|
||||||
pInfos = append(pInfos, op.ToProto())
|
pInfos = append(pInfos, op.ToProto())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user