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
|
// LK-TODO: large number of subscribers needs to be solved for this loop
|
||||||
for _, subTrack := range t.MediaTrackSubscriptions.getAllSubscribedTracks() {
|
for _, subTrack := range t.MediaTrackSubscriptions.getAllSubscribedTracks() {
|
||||||
|
if IsParticipantExemptFromTrackPermissionsRestrictions(subTrack.Subscriber()) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
found := false
|
found := false
|
||||||
for _, allowedIdentity := range allowedSubscriberIdentities {
|
for _, allowedIdentity := range allowedSubscriberIdentities {
|
||||||
if subTrack.SubscriberIdentity() == allowedIdentity {
|
if subTrack.SubscriberIdentity() == allowedIdentity {
|
||||||
|
|||||||
Reference in New Issue
Block a user