Store main key also when verifying recovery code
in case it wasn't stored before
This commit is contained in:
parent
c8a7e763d6
commit
100a99484a
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ class RecoveryCodeViewModel(
|
|||
keyManager.storeMainKey(seed)
|
||||
mRecoveryCodeSaved.setEvent(true)
|
||||
} 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