Skip to content

Commit

Permalink
ReceivePresenceEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Sep 9, 2024
1 parent fa257a5 commit 6ee09ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6ee09ec

Please sign in to comment.