1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-07-02 11:34:54 +02: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, await storageService.SaveAsync(Constants.PushRegisteredTokenKey,
settingsShim.GetValueOrDefault("push:registeredToken", null)); settingsShim.GetValueOrDefault("push:registeredToken", null));
Log("Migrating 6.9"); Log("Migrating 6.9");
await storageService.SaveAsync(Constants.PushLastRegistrationDateKey, var lastReg = settingsShim.GetValueOrDefault("push:lastRegistrationDate", DateTime.MinValue);
settingsShim.GetValueOrDefault("push:lastRegistrationDate", DateTime.MinValue)); Log("Migrating 6.9.1 " + lastReg);
await storageService.SaveAsync(Constants.PushLastRegistrationDateKey, lastReg);
Log("Migrating 6.10"); Log("Migrating 6.10");
await storageService.SaveAsync("rememberedEmail", await storageService.SaveAsync("rememberedEmail",
settingsShim.GetValueOrDefault("other:lastLoginEmail", null)); settingsShim.GetValueOrDefault("other:lastLoginEmail", null));

View File

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