mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
post migration
This commit is contained in:
parent
6b68e85077
commit
0e3eeab828
1 changed files with 5 additions and 2 deletions
|
@ -173,15 +173,18 @@ namespace Bit.App.Migration
|
|||
var pinProtectedKey = await cryptoService.EncryptAsync(oldKeyBytes, pinKey);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue