Store main key also when verifying recovery code
in case it wasn't stored before
This commit is contained in:
parent
851407037e
commit
68543dcb91
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ class RecoveryCodeViewModel(
|
||||||
keyManager.storeMainKey(seed)
|
keyManager.storeMainKey(seed)
|
||||||
mRecoveryCodeSaved.setEvent(true)
|
mRecoveryCodeSaved.setEvent(true)
|
||||||
} else {
|
} else {
|
||||||
mExistingCodeChecked.setEvent(crypto.verifyBackupKey(seed))
|
val verified = crypto.verifyBackupKey(seed)
|
||||||
|
if (verified && !keyManager.hasMainKey()) keyManager.storeMainKey(seed)
|
||||||
|
mExistingCodeChecked.setEvent(verified)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue