ios: CallKit double call in background fix (#2004)

This commit is contained in:
Stanislav Dmitrenko
2023-03-14 18:28:34 +03:00
committed by GitHub
parent f123a905d5
commit f48cabcc0a

View File

@@ -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