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

migrate push reg date

This commit is contained in:
Kyle Spearrin 2019-06-03 14:03:24 -04:00
parent 11ec9b320e
commit 0918e1d963
2 changed files with 6 additions and 2 deletions

View File

@ -111,8 +111,9 @@ namespace Bit.App.Migration
await storageService.SaveAsync(Constants.PushRegisteredTokenKey,
settingsShim.GetValueOrDefault("push:registeredToken", null));
Log("Migrating 6.9");
await storageService.SaveAsync(Constants.PushLastRegistrationDateKey,
settingsShim.GetValueOrDefault("push:lastRegistrationDate", DateTime.MinValue));
var lastReg = settingsShim.GetValueOrDefault("push:lastRegistrationDate", DateTime.MinValue);
Log("Migrating 6.9.1 " + lastReg);
await storageService.SaveAsync(Constants.PushLastRegistrationDateKey, lastReg);
Log("Migrating 6.10");
await storageService.SaveAsync("rememberedEmail",
settingsShim.GetValueOrDefault("other:lastLoginEmail", null));

View File

@ -23,6 +23,9 @@ namespace Bit.App.Services
Constants.LastActiveKey,
Constants.PushInitialPromptShownKey,
Constants.LastFileCacheClearKey,
Constants.PushLastRegistrationDateKey,
Constants.PushRegisteredTokenKey,
Constants.PushCurrentTokenKey,
Constants.LastBuildKey
};