1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-28 17:18:23 +01:00

sync when finished migrating

This commit is contained in:
Kyle Spearrin 2019-06-03 14:32:43 -04:00
parent 17b90c744c
commit 5eee358059
3 changed files with 6 additions and 1 deletions

View File

@ -124,7 +124,6 @@ namespace Bit.App
else if(message.Command == "migrated")
{
await Task.Delay(1000);
SyncIfNeeded();
await SetMainPageAsync();
}
});

View File

@ -40,6 +40,7 @@ namespace Bit.App.Migration
var environmentService = ServiceContainer.Resolve<IEnvironmentService>("environmentService");
var passwordGenerationService = ServiceContainer.Resolve<IPasswordGenerationService>(
"passwordGenerationService");
var syncService = ServiceContainer.Resolve<ISyncService>("syncService");
Log("Migrating 2");
// Get old data
@ -189,6 +190,7 @@ namespace Bit.App.Migration
settingsShim.Remove(Constants.OldUserIdKey);
Migrating = false;
messagingService.Send("migrated");
var task = Task.Run(() => syncService.FullSyncAsync(true));
Log("Migrating 11");
return true;
}

View File

@ -183,6 +183,10 @@ namespace Bit.App.Pages
get => _wordSeparator;
set
{
if(value == null)
{
return;
}
var val = value.Trim();
if(SetProperty(ref _wordSeparator, val))
{