sync on migrate if online

This commit is contained in:
Kyle Spearrin 2019-06-03 23:26:57 -04:00
parent 42d6a7c9b8
commit 506ab12b95

View file

@ -185,8 +185,10 @@ namespace Bit.App.Migration
settingsShim.Remove(Constants.OldUserIdKey);
Migrating = false;
messagingService.Send("migrated");
if(Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.None)
{
var task = Task.Run(() => syncService.FullSyncAsync(true));
}
return true;
}
}