From db10fee207300cd6e0a13a8d732a62e2ea5547ca Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 4 Jun 2019 23:26:56 -0400 Subject: [PATCH] check internet connection on sync --- src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs index 4d2ee69eb..02c2d0c43 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs @@ -87,8 +87,10 @@ namespace Bit.App.Pages await _vm.LoadAsync(); } } + // Forced sync if for some reason we have no data after a v1 migration if(_vm.MainPage && !_syncService.SyncInProgress && migratedFromV1.GetValueOrDefault() && - _vm.Ciphers.Count == 0 && _vm.Folders.Count == 0) + _vm.Ciphers.Count == 0 && _vm.Folders.Count == 0 && + Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None) { await _syncService.FullSyncAsync(true); }