Remove remote provisioning URI from Core when logging out the last account to prevent possible automatic account configuration when app will be restarted

This commit is contained in:
Sylvain Berfini 2026-04-10 09:52:36 +02:00
parent 839dcea67d
commit 6d51f23e11

View file

@ -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
}
}
}
}
}