try to fix callkit

pull/1055/head
Ryan ZHAO 4 months ago
parent 921ef93064
commit 8624e4cf46

@ -7819,7 +7819,7 @@
CODE_SIGN_ENTITLEMENTS = Session/Meta/Signal.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 508;
CURRENT_PROJECT_VERSION = 510;
DEVELOPMENT_TEAM = SUQ8J2PCT7;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@ -7890,7 +7890,7 @@
CODE_SIGN_ENTITLEMENTS = Session/Meta/Signal.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 508;
CURRENT_PROJECT_VERSION = 510;
DEVELOPMENT_TEAM = SUQ8J2PCT7;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",

@ -302,6 +302,7 @@ public extension SessionCallManager {
public var provider: CXProvider?
public func getOrCreateProvider(useSystemCallLog: Bool) -> CXProvider {
SNLog("[Calls] getOrCreateProvider")
if let provider: CXProvider = self.provider {
return provider
}

@ -42,6 +42,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
verifyDBKeysAvailableBeforeBackgroundLaunch()
_ = AppVersion.shared
/// Create a proper `SessionCallManager` for the main app (defaults to a no-op version)
Singleton.setCallManager(SessionCallManager(using: dependencies))
Singleton.setPushRegistrationManager(PushRegistrationManager(using: dependencies))
Singleton.pushRegistrationManager.createVoipRegistryIfNecessary()
@ -60,7 +62,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
Log.info("[AppDelegate] Setting up environment.")
/// Create a proper `SessionCallManager` for the main app (defaults to a no-op version)
Singleton.setCallManager(SessionCallManager(using: dependencies))
// Singleton.setCallManager(SessionCallManager(using: dependencies))
// Setup LibSession
LibSession.addLogger()

Loading…
Cancel
Save