1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-14 23:33:34 +00:00

[PM-891] Remove check for biometrics from IsLocked method. (#2853)

This commit is contained in:
André Bispo
2023-11-07 16:46:31 +00:00
committed by GitHub
parent 9506595fdd
commit c5288d3921

View File

@@ -63,13 +63,6 @@ namespace Bit.Core.Services
/// </param>
public async Task<bool> IsLockedAsync(string userId = null)
{
// If biometrics are used, we can use the flag to determine locked state
var biometricSet = await IsBiometricLockSetAsync(userId);
if (biometricSet && await _stateService.GetBiometricLockedAsync(userId))
{
return true;
}
if (!await _cryptoService.HasUserKeyAsync(userId))
{
try