From b5a6ab70c9bb951a84096de9e071e4d43915a157 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Fri, 29 Sep 2023 15:41:57 +0200 Subject: [PATCH] Use branch feature/swift_wrapper_async_helpers of the linphone SDK --- .../4-CallKitTutorial/CallKitTutorial/CallKitTutorial.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/swift/4-CallKitTutorial/CallKitTutorial/CallKitTutorial.swift b/ios/swift/4-CallKitTutorial/CallKitTutorial/CallKitTutorial.swift index 308a39d..d2b2994 100644 --- a/ios/swift/4-CallKitTutorial/CallKitTutorial/CallKitTutorial.swift +++ b/ios/swift/4-CallKitTutorial/CallKitTutorial/CallKitTutorial.swift @@ -42,7 +42,7 @@ class CallKitExampleContext : ObservableObject func addRegistrationStateCallBack(core:Core) { - core.accountStatePublisher + core.publisher?.onAccountRegistrationStateChanged? .postOnMainQueue { (publishedValue:(core: Core, account: Account, state: RegistrationState, message: String)) in NSLog("New registration state is \(publishedValue.state) for user id \( String(describing: publishedValue.account.params?.identityAddress?.asString()))\n") if (publishedValue.state == .Ok) { @@ -61,7 +61,7 @@ class CallKitExampleContext : ObservableObject func addCallStateChangedCallBack(core:Core) { - core.callStatePublisher + core.publisher?.onCallStateChanged? .postOnMainQueue { (publishedValue:(core: Core, call: Call, state: Call.State, message: String)) in self.callMsg = publishedValue.message if (publishedValue.state == .PushIncomingReceived){