Merge branch 'release/3.5.3'

This commit is contained in:
Radek Czemerys
2020-11-05 19:22:50 +01:00
3 changed files with 13 additions and 4 deletions

View File

@@ -55,7 +55,7 @@
"react-navigation-header-buttons": "^6.0.0",
"sn-textview": "standardnotes/sn-textview#440dbd60eedef4397b6272735e68d4579bb41ac8",
"sncrypto": "standardnotes/sncrypto#5f8cd36",
"snjs": "standardnotes/snjs#b07f37232029056699e7eae9af0820ca7cf536d1",
"snjs": "standardnotes/snjs#d6556503aae3d1ac6ca4c8f2c116430fe8f1a91b",
"standard-notes-rn": "standardnotes/standard-notes-rn#996b016",
"styled-components": "^5.2.1"
},

View File

@@ -38,7 +38,16 @@ export class InstallationService extends ApplicationService {
FIRST_RUN_KEY,
StorageValueModes.Nonwrapped
);
const firstRunKeyMissing = isNullOrUndefined(firstRunKey);
let firstRunKeyMissing = isNullOrUndefined(firstRunKey);
/*
* Because of migration failure first run key might not be in non wrapped storage
*/
if (firstRunKeyMissing) {
const fallbackFirstRunValue = await this.application?.deviceInterface?.getRawStorageValue(
FIRST_RUN_KEY
);
firstRunKeyMissing = isNullOrUndefined(fallbackFirstRunValue);
}
return !hasNormalKeys && hasKeychainValue && firstRunKeyMissing;
}

View File

@@ -7988,9 +7988,9 @@ sncrypto@standardnotes/sncrypto#5f8cd36:
version "1.2.0"
resolved "https://codeload.github.com/standardnotes/sncrypto/tar.gz/5f8cd369773cec7f342c23ecaa659d932b35cd31"
snjs@standardnotes/snjs#b07f37232029056699e7eae9af0820ca7cf536d1:
snjs@standardnotes/snjs#d6556503aae3d1ac6ca4c8f2c116430fe8f1a91b:
version "1.0.5"
resolved "https://codeload.github.com/standardnotes/snjs/tar.gz/b07f37232029056699e7eae9af0820ca7cf536d1"
resolved "https://codeload.github.com/standardnotes/snjs/tar.gz/d6556503aae3d1ac6ca4c8f2c116430fe8f1a91b"
source-map-resolve@^0.5.0:
version "0.5.3"