forked from mirrors/linphone-iphone
Compare commits
1 commit
master
...
fix/fra_de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05c4300e10 |
2 changed files with 17 additions and 3 deletions
|
|
@ -183,10 +183,20 @@ final class CoreContext: ObservableObject {
|
||||||
#else
|
#else
|
||||||
let pushEnvironment = ""
|
let pushEnvironment = ""
|
||||||
#endif
|
#endif
|
||||||
for account in core.accountList where account.params?.pushNotificationConfig?.provider != ("apns" + pushEnvironment) {
|
for account in core.accountList {
|
||||||
|
|
||||||
let newParams = account.params?.clone()
|
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)")
|
if account.params?.pushNotificationConfig?.provider != ("apns" + pushEnvironment) {
|
||||||
newParams?.pushNotificationConfig?.provider = "apns" + pushEnvironment
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
if account.params?.internationalPrefix == nil {
|
||||||
|
Log.info("Account \(account.displayName()): no international prefix set, adding 33 FRA by default: \(account.params?.internationalPrefix ?? "NIL")")
|
||||||
|
newParams?.internationalPrefix = "33"
|
||||||
|
newParams?.internationalPrefixIsoCountryCode = "FRA"
|
||||||
|
newParams?.useInternationalPrefixForCallsAndChats = true
|
||||||
|
}
|
||||||
account.params = newParams
|
account.params = newParams
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,10 @@ class AccountLoginViewModel: ObservableObject {
|
||||||
#endif
|
#endif
|
||||||
accountParams.pushNotificationConfig?.provider = "apns" + pushEnvironment
|
accountParams.pushNotificationConfig?.provider = "apns" + pushEnvironment
|
||||||
|
|
||||||
|
accountParams.internationalPrefix = "33"
|
||||||
|
accountParams.internationalPrefixIsoCountryCode = "FRA"
|
||||||
|
accountParams.useInternationalPrefixForCallsAndChats = true
|
||||||
|
|
||||||
// Now that our AccountParams is configured, we can create the Account object
|
// Now that our AccountParams is configured, we can create the Account object
|
||||||
let account = try core.createAccount(params: accountParams)
|
let account = try core.createAccount(params: accountParams)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue