mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
FIX: Set the first launch flag
This commit is contained in:
parent
22a4b4b1cd
commit
1aaa58e56c
@ -12,12 +12,14 @@ export default class WalletMigrate {
|
||||
|
||||
// 0: Let's start!
|
||||
async start() {
|
||||
const firstLaunch = await AsyncStorage.getItem('RnSksIsAppInstalled');
|
||||
if (firstLaunch === undefined || firstLaunch === null || firstLaunch === false || firstLaunch === '') {
|
||||
const isNotFirstLaunch = await AsyncStorage.getItem('RnSksIsAppInstalled');
|
||||
if (!isNotFirstLaunch) {
|
||||
try {
|
||||
console.warn('It is the first launch...')
|
||||
await RNSecureKeyStore.setResetOnAppUninstallTo(false);
|
||||
const deleteWalletsFromKeychain = await RNSecureKeyStore.get(AppStorage.DELETE_WALLET_AFTER_UNINSTALL);
|
||||
await RNSecureKeyStore.setResetOnAppUninstallTo(deleteWalletsFromKeychain === '1');
|
||||
await AsyncStorage.setItem('RnSksIsAppInstalled', '1');
|
||||
} catch (_e) {}
|
||||
await AsyncStorage.setItem('RnSksIsAppInstalled', '1');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user