mirror of
https://github.com/bitwarden/android.git
synced 2026-03-24 15:21:42 -05:00
BIT-853: Updated email when switching account on Vault Unlock screen (#332)
This commit is contained in:
committed by
Álison Fernandes
parent
96866ee540
commit
053c345f95
@@ -171,6 +171,7 @@ class VaultUnlockViewModel @Inject constructor(
|
||||
initials = activeAccountSummary.initials,
|
||||
avatarColorString = activeAccountSummary.avatarColorHex,
|
||||
accountSummaries = accountSummaries,
|
||||
email = activeAccountSummary.email,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ class VaultUnlockViewModelTest : BaseViewModelTest() {
|
||||
UserState.Account(
|
||||
userId = "activeUserId",
|
||||
name = "Other User",
|
||||
email = "active@bitwarden.com",
|
||||
email = "active+test@bitwarden.com",
|
||||
avatarColorHex = "#00aaaa",
|
||||
isPremium = true,
|
||||
isVaultUnlocked = true,
|
||||
@@ -110,11 +110,12 @@ class VaultUnlockViewModelTest : BaseViewModelTest() {
|
||||
DEFAULT_STATE.copy(
|
||||
avatarColorString = "#00aaaa",
|
||||
initials = "OU",
|
||||
email = "active+test@bitwarden.com",
|
||||
accountSummaries = listOf(
|
||||
AccountSummary(
|
||||
userId = "activeUserId",
|
||||
name = "Other User",
|
||||
email = "active@bitwarden.com",
|
||||
email = "active+test@bitwarden.com",
|
||||
avatarColorHex = "#00aaaa",
|
||||
status = AccountSummary.Status.ACTIVE,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user