Remove redundant call to set vault to unlocked (#1217)

This commit is contained in:
David Perez 2024-04-03 11:49:41 -05:00 committed by Álison Fernandes
parent 4880dc58bd
commit 37fb1fadb8

View file

@ -363,15 +363,12 @@ class VaultLockManagerImpl(
} else {
// Retrieve the key. If non-null, unlock the user
authDiskSource.getUserAutoUnlockKey(userId = userId)?.let {
val result = unlockVaultForUser(
unlockVaultForUser(
userId = userId,
initUserCryptoMethod = InitUserCryptoMethod.DecryptedKey(
decryptedUserKey = it,
),
)
if (result is VaultUnlockResult.Success) {
setVaultToUnlocked(userId = userId)
}
}
}
}