1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 15:53:44 +00:00

HasCiphers and HasFolders props

This commit is contained in:
Kyle Spearrin
2019-06-05 00:29:49 -04:00
parent a239ee80bc
commit c3f91761f6
2 changed files with 6 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ namespace Bit.App.Pages
}
// Forced sync if for some reason we have no data after a v1 migration
if(_vm.MainPage && !_syncService.SyncInProgress && migratedFromV1.GetValueOrDefault() &&
(!_vm.Ciphers?.Any() ?? true) && (!_vm.Folders?.Any() ?? true) &&
!_vm.HasCiphers && !_vm.HasFolders &&
Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
{
var triedV1ReSync = await _storageService.GetAsync<bool?>(Constants.TriedV1Resync);