mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-17 21:38:29 +00:00
Merge branch 'fix/remove_provisioning_after_logging_out_latest_account' into 'release/6.2'
Remove remote provisioning URI from Core when logging out the last account to... See merge request BC/public/linphone-android!2484
This commit is contained in:
commit
ff4903ec02
1 changed files with 8 additions and 0 deletions
|
|
@ -268,6 +268,14 @@ class AccountProfileViewModel
|
|||
Log.w("$TAG Removing account [$identity] and all related data (auth info, conferences, conversations, call logs)")
|
||||
core.removeAccountWithData(account)
|
||||
accountRemovedEvent.postValue(Event(true))
|
||||
|
||||
if (core.accountList.isEmpty()) {
|
||||
Log.w("$TAG No more account found in Core")
|
||||
if (!core.provisioningUri.isNullOrEmpty()) {
|
||||
Log.w("$TAG Removing remote provisioning URI")
|
||||
core.provisioningUri = null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue