From 2531c47151eed9fda0e82baae1469814f24da68a Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 20 Oct 2025 15:19:19 +0200 Subject: [PATCH] Update account params if necessary in CoreContext --- Linphone/Core/CoreContext.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Linphone/Core/CoreContext.swift b/Linphone/Core/CoreContext.swift index 52ee098ee..bfa16d953 100644 --- a/Linphone/Core/CoreContext.swift +++ b/Linphone/Core/CoreContext.swift @@ -208,14 +208,14 @@ class CoreContext: ObservableObject { let pushEnvironment = "" #endif for account in core.accountList { - - let newParams = account.params?.clone() if account.params?.pushNotificationConfig?.provider != ("apns" + pushEnvironment) { + let newParams = account.params?.clone() + Log.info("Account \(String(describing: newParams?.identityAddress?.asStringUriOnly())) - updating apple push provider from \(String(describing: newParams?.pushNotificationConfig?.provider)) to apns\(pushEnvironment)") newParams?.pushNotificationConfig?.provider = "apns" + pushEnvironment + + account.params = newParams } - - account.params = newParams } self.actionsToPerformOnCoreQueueWhenCoreIsStarted.forEach { $0(core) }