mirror of
https://github.com/livekit/livekit.git
synced 2026-05-24 16:55:35 +00:00
Do not revoke track subscription on permission update for exempt (#3458)
participants.
This commit is contained in:
@@ -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