Prevent auth dialog for removed accounts
This commit is contained in:
parent
93ac3f8c41
commit
70803664f9
1 changed files with 8 additions and 0 deletions
|
@ -691,6 +691,14 @@ class MainActivity : GenericActivity(), SnackBarActivity, NavController.OnDestin
|
|||
) {
|
||||
authenticationRequiredDialog?.dismiss()
|
||||
|
||||
val accountFound = coreContext.core.accountList.find {
|
||||
it.params.identityAddress?.username == authInfo.username && it.params.identityAddress?.domain == authInfo.domain
|
||||
}
|
||||
if (accountFound == null) {
|
||||
Log.w("[Main Activity] Failed to find account matching auth info, aborting auth dialog")
|
||||
return
|
||||
}
|
||||
|
||||
val identity = "${authInfo.username}@${authInfo.domain}"
|
||||
Log.i("[Main Activity] Showing authentication required dialog for account [$identity]")
|
||||
|
||||
|
|
Loading…
Reference in a new issue