mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
Do not revoke track subscription on permission update for exempt (#3458)
participants.
This commit is contained in:
1 parent
60a09cb4be
commit
83b94b31ac
1 file changed
+4
@@ -628,6 +628,10 @@ func (t *MediaTrackReceiver) RevokeDisallowedSubscribers(allowedSubscriberIdenti
|
||||
|
||||
// LK-TODO: large number of subscribers needs to be solved for this loop
|
||||
for _, subTrack := range t.MediaTrackSubscriptions.getAllSubscribedTracks() {
|
||||
if IsParticipantExemptFromTrackPermissionsRestrictions(subTrack.Subscriber()) {
|
||||
continue
|
||||
}
|
||||
|
||||
found := false
|
||||
for _, allowedIdentity := range allowedSubscriberIdentities {
|
||||
if subTrack.SubscriberIdentity() == allowedIdentity {
|
||||
|
||||
Reference in new issue
Block a user