Do not revoke track subscription on permission update for exempt (#3458)

participants.
This commit is contained in:
Raja Subramanian
2025-02-21 11:25:29 +05:30
committed by GitHub
parent 60a09cb4be
commit 83b94b31ac
+4
View File
@@ -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 {