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

[PM-3222] Migration of data from LiteDB to shared pref storage (#2724)

* Migration of data from LiteDB to shared pref storage

* tweaks
This commit is contained in:
mpbw2
2023-08-30 10:55:20 -04:00
committed by GitHub
parent 4d0f9d1c03
commit dbadf8c56f
10 changed files with 373 additions and 87 deletions

View File

@@ -150,6 +150,12 @@ namespace Bit.App.Pages
private async Task SaveActivityAsync()
{
SetServices();
if (await _stateService.GetActiveUserIdAsync() == null)
{
// Fresh install and/or all users logged out won't have an active user, skip saving last active time
return;
}
await _stateService.SetLastActiveTimeAsync(_deviceActionService.GetActiveTime());
}
}