From 0918e1d963deecc98925018606b9b6402f7b22ee Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 14:03:24 -0400 Subject: [PATCH] migrate push reg date --- src/App/Migration/MigrationHelpers.cs | 5 +++-- src/App/Services/MobileStorageService.cs | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/App/Migration/MigrationHelpers.cs b/src/App/Migration/MigrationHelpers.cs index 87e051e52..769793c97 100644 --- a/src/App/Migration/MigrationHelpers.cs +++ b/src/App/Migration/MigrationHelpers.cs @@ -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)); diff --git a/src/App/Services/MobileStorageService.cs b/src/App/Services/MobileStorageService.cs index f24a80075..fe5e100fb 100644 --- a/src/App/Services/MobileStorageService.cs +++ b/src/App/Services/MobileStorageService.cs @@ -23,6 +23,9 @@ namespace Bit.App.Services Constants.LastActiveKey, Constants.PushInitialPromptShownKey, Constants.LastFileCacheClearKey, + Constants.PushLastRegistrationDateKey, + Constants.PushRegisteredTokenKey, + Constants.PushCurrentTokenKey, Constants.LastBuildKey };