mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Update account params if necessary in CoreContext
This commit is contained in:
parent
dcbb130ae8
commit
2531c47151
1 changed files with 4 additions and 4 deletions
|
|
@ -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) }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue