Always migrate envUrls (#614)

This commit is contained in:
Thomas Rittson 2022-01-18 13:44:39 +10:00 committed by GitHub
parent 8460629de4
commit cc285e5ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -177,9 +177,7 @@ export class StateMigrationService {
v1Keys.enableBiometric,
options
),
environmentUrls:
(await this.storageService.get<EnvironmentUrls>(v1Keys.environmentUrls, options)) ??
new EnvironmentUrls(),
environmentUrls: null,
installedVersion: await this.storageService.get<string>(
v1Keys.installedVersion,
options
@ -489,6 +487,10 @@ export class StateMigrationService {
},
};
initialState.globals.environmentUrls =
(await this.storageService.get<EnvironmentUrls>(v1Keys.environmentUrls, options)) ??
new EnvironmentUrls();
await this.storageService.save("state", initialState, options);
if (await this.secureStorageService.has(v1Keys.key, { keySuffix: "biometric" })) {