[PM-25640] Dialog flickers when switching accounts (#5865)

This commit is contained in:
André Bispo 2025-09-11 14:41:34 +01:00 committed by GitHub
parent ef39ea6d5d
commit 417a1494e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -913,7 +913,9 @@ class VaultViewModel @Inject constructor(
updateVaultState( updateVaultState(
vaultData = vaultData.data, vaultData = vaultData.data,
dialog = if (shouldShowDecryptionAlert) { dialog = if (shouldShowDecryptionAlert ||
state.dialog is VaultState.DialogState.VaultLoadCipherDecryptionError
) {
VaultState.DialogState.VaultLoadCipherDecryptionError( VaultState.DialogState.VaultLoadCipherDecryptionError(
title = BitwardenString.decryption_error.asText(), title = BitwardenString.decryption_error.asText(),
cipherCount = vaultData.data.decryptCipherListResult.failures.size, cipherCount = vaultData.data.decryptCipherListResult.failures.size,