mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
migrate push reg date
This commit is contained in:
parent
11ec9b320e
commit
0918e1d963
2 changed files with 6 additions and 2 deletions
|
@ -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));
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue