edoctor-sendbird-calls 1.0.1-beta.10 → 1.0.1-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -384,10 +384,11 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
384
384
|
SendBirdCall.pushRegistry(registry, didReceiveIncomingPushWith: payload, for: type, completionHandler: nil)
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
@available(iOS 10.0, *)
|
|
388
387
|
func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void) {
|
|
389
388
|
print(TAG + "pushRegistry incoming call")
|
|
390
|
-
|
|
389
|
+
if !SendBirdCall.hasDelegate(identifier: "RNSendBirdCalls") {
|
|
390
|
+
SendBirdCall.addDelegate(self, identifier: "RNSendBirdCalls")
|
|
391
|
+
}
|
|
391
392
|
SendBirdCall.pushRegistry(registry, didReceiveIncomingPushWith: payload, for: type) { uuid in
|
|
392
393
|
guard uuid != nil else {
|
|
393
394
|
let update = CXCallUpdate()
|