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

triedV1ReSync check

This commit is contained in:
Kyle Spearrin
2019-06-04 23:39:58 -04:00
parent db10fee207
commit 1ef086a02c
3 changed files with 8 additions and 1 deletions

View File

@@ -92,7 +92,12 @@ namespace Bit.App.Pages
_vm.Ciphers.Count == 0 && _vm.Folders.Count == 0 &&
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
{
await _syncService.FullSyncAsync(true);
var triedV1ReSync = await _storageService.GetAsync<bool?>(Constants.TriedV1Resync);
if(!triedV1ReSync.GetValueOrDefault())
{
await _storageService.SaveAsync(Constants.TriedV1Resync, true);
await _syncService.FullSyncAsync(true);
}
}
}, _mainContent);