diff --git a/Sources/PubNub/Subscription/SubscriptionSession.swift b/Sources/PubNub/Subscription/SubscriptionSession.swift index 5c5546fa..cc356fd8 100644 --- a/Sources/PubNub/Subscription/SubscriptionSession.swift +++ b/Sources/PubNub/Subscription/SubscriptionSession.swift @@ -357,7 +357,14 @@ extension SubscriptionSession: SubscribeReceiver { } let channels = presenceItemsOnly ? [] : Set(subscriptions.filter { - matchingSubscriptions(for: $0, presenceOnly: false).isEmpty && matchingSubscriptions(for: $0, presenceOnly: true).isEmpty + matchingSubscriptions( + for: $0, + presenceOnly: false + ).isEmpty && + matchingSubscriptions( + for: $0, + presenceOnly: true + ).isEmpty }.flatMap { $0.subscriptionNames }).symmetricDifference(presenceItems.map {