From f48cabcc0a55602a5889b40e6f1601a382e8331f Mon Sep 17 00:00:00 2001 From: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com> Date: Tue, 14 Mar 2023 18:28:34 +0300 Subject: [PATCH] ios: CallKit double call in background fix (#2004) --- apps/ios/Shared/Views/Call/CallController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/ios/Shared/Views/Call/CallController.swift b/apps/ios/Shared/Views/Call/CallController.swift index df724947c3..cfeefdb903 100644 --- a/apps/ios/Shared/Views/Call/CallController.swift +++ b/apps/ios/Shared/Views/Call/CallController.swift @@ -139,6 +139,7 @@ class CallController: NSObject, CXProviderDelegate, PKPushRegistryDelegate, Obse if type == .voIP { if (!ChatModel.shared.chatInitialized) { initChatAndMigrate() + startChatAndActivate() CallController.shared.onEndCall = { terminateChat() } // CallKit will be called from different place, see SimpleXAPI.startChat() return