1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-30 04:17:55 +02:00

post migration

This commit is contained in:
Kyle Spearrin 2019-06-03 15:44:05 -04:00
parent 6b68e85077
commit 0e3eeab828

View File

@ -174,14 +174,17 @@ namespace Bit.App.Migration
await storageService.SaveAsync(Constants.PinProtectedKey, pinProtectedKey.EncryptedString);
}
// Post migration tasks
await cryptoService.ToggleKeyAsync();
await storageService.SaveAsync(Constants.LastActiveKey, DateTime.MinValue);
await lockService.CheckLockAsync();
// Remove "needs migration" flag
settingsShim.Remove(Constants.OldUserIdKey);
Migrating = false;
messagingService.Send("migrated");
await lockService.CheckLockAsync();
var task = Task.Run(() => syncService.FullSyncAsync(true));
return true;
}
}