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:
Sylvain Berfini 2026-04-10 07:53:03 +00:00
commit ff4903ec02

View file

@ -268,6 +268,14 @@ class AccountProfileViewModel
Log.w("$TAG Removing account [$identity] and all related data (auth info, conferences, conversations, call logs)") Log.w("$TAG Removing account [$identity] and all related data (auth info, conferences, conversations, call logs)")
core.removeAccountWithData(account) core.removeAccountWithData(account)
accountRemovedEvent.postValue(Event(true)) 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
}
}
} }
} }
} }