mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
check internet connection on sync
This commit is contained in:
parent
279b53704b
commit
db10fee207
@ -87,8 +87,10 @@ namespace Bit.App.Pages
|
|||||||
await _vm.LoadAsync();
|
await _vm.LoadAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Forced sync if for some reason we have no data after a v1 migration
|
||||||
if(_vm.MainPage && !_syncService.SyncInProgress && migratedFromV1.GetValueOrDefault() &&
|
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);
|
await _syncService.FullSyncAsync(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user