mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
check that now is > LastActivity Date
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Bit.App.Services
|
||||
|
||||
// Has it been longer than lockSeconds since the last time the app was used?
|
||||
var now = DateTime.UtcNow;
|
||||
if((now - _appSettings.LastActivity).TotalSeconds < lockSeconds)
|
||||
if(now > _appSettings.LastActivity && (now - _appSettings.LastActivity).TotalSeconds < lockSeconds)
|
||||
{
|
||||
return LockType.None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user