From c9faa404753405d0632a4dfe8c4ddc925ef6ec8e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 3 Jun 2019 15:15:00 -0400 Subject: [PATCH] don't migrate push:lastRegistrationDate --- src/App/Migration/MigrationHelpers.cs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/App/Migration/MigrationHelpers.cs b/src/App/Migration/MigrationHelpers.cs index cc3c00858..743f29322 100644 --- a/src/App/Migration/MigrationHelpers.cs +++ b/src/App/Migration/MigrationHelpers.cs @@ -98,11 +98,10 @@ namespace Bit.App.Migration settingsShim.GetValueOrDefault("push:currentToken", null)); await storageService.SaveAsync(Constants.PushRegisteredTokenKey, settingsShim.GetValueOrDefault("push:registeredToken", null)); - Log("Migrating 6.9"); - var lastReg = settingsShim.GetValueOrDefault("push:lastRegistrationDate", DateTime.MinValue); - Log("Migrating 6.9.1 = " + lastReg); - await storageService.SaveAsync(Constants.PushLastRegistrationDateKey, lastReg); - Log("Migrating 6.10"); + // For some reason "push:lastRegistrationDate" isn't getting pulled from settingsShim correctly. + // We don't really need it anyways. + // var lastReg = settingsShim.GetValueOrDefault("push:lastRegistrationDate", DateTime.MinValue); + // await storageService.SaveAsync(Constants.PushLastRegistrationDateKey, lastReg); await storageService.SaveAsync("rememberedEmail", settingsShim.GetValueOrDefault("other:lastLoginEmail", null)); @@ -183,11 +182,5 @@ namespace Bit.App.Migration var task = Task.Run(() => syncService.FullSyncAsync(true)); return true; } - - private static void Log(string message) - { - ServiceContainer.Resolve("logService").Info(message); - System.Diagnostics.Debug.WriteLine(message); - } } }