From 34a21e6eba4950eae44695ea4a1d01d72388b272 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Fri, 6 Sep 2024 13:10:28 +0200 Subject: [PATCH] ReceivePresenceEvents --- Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift b/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift index 684886c9..f1e86be4 100644 --- a/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift +++ b/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift @@ -27,6 +27,12 @@ public class PubNubSubscriptionObjC: NSObject { self.subscription = Subscription(entity: entity.entity) self.receivePresenceEvents = receivePresenceEvents } + + @objc + public init(entity: PubNubEntityRepresentableObjC) { + self.subscription = Subscription(entity: entity.entity) + self.receivePresenceEvents = false + } @objc public func dispose() {