mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 21:33:36 +00:00
only sync if not updated
This commit is contained in:
@@ -103,8 +103,11 @@ namespace Bit.App
|
|||||||
|
|
||||||
if(string.IsNullOrWhiteSpace(_uri))
|
if(string.IsNullOrWhiteSpace(_uri))
|
||||||
{
|
{
|
||||||
Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService);
|
var updated = Helpers.PerformUpdateTasks(_settings, _appInfoService, _databaseService, _syncService);
|
||||||
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
if(!updated)
|
||||||
|
{
|
||||||
|
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((DateTime.UtcNow - _appSettingsService.LastCacheClear).TotalDays >= 1)
|
if((DateTime.UtcNow - _appSettingsService.LastCacheClear).TotalDays >= 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user