From 2a365f3baa1f78252ce5296ca04ba60b74d41047 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Tue, 24 Jun 2025 16:15:27 +0200 Subject: [PATCH] Set coreQueue in sharedCore init --- Linphone/Core/CoreContext.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index 8e1232ad2..7e279cfef 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -22,7 +22,6 @@ // swiftlint:disable identifier_name import linphonesw -import linphone // needed for unwrapped function linphone_core_set_push_and_app_delegate_dispatch_queue import Combine import UniformTypeIdentifiers import Network @@ -142,9 +141,8 @@ class CoreContext: ObservableObject { } } - self.mCore = try? Factory.Instance.createSharedCoreWithConfig(config: Config.get(), systemContext: nil, appGroupId: Config.appGroupName, mainCore: true) + self.mCore = try? Factory.Instance.createSharedCoreWithConfig(config: Config.get(), systemContext: Unmanaged.passUnretained(coreQueue).toOpaque(), appGroupId: Config.appGroupName, mainCore: true) - linphone_core_set_push_and_app_delegate_dispatch_queue(self.mCore.getCobject, Unmanaged.passUnretained(coreQueue).toOpaque()) self.mCore.callkitEnabled = true self.mCore.pushNotificationEnabled = true