Fix bug when restoring key backup with recovery key

This commit is contained in:
Benoit Marty 2020-07-11 12:26:04 +02:00
parent 2c5d2ea179
commit 5a8008a4dc
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Improvements 🙌:
Bugfix 🐛:
- Regression | Share action menu do not work (#1647)
- verification issues on transition (#1555)
- Fix issue when restoring keys backup using recovery key
Translations 🗣:
-

View File

@ -49,7 +49,7 @@ class KeysBackupRestoreFromKeyViewModel @Inject constructor(
viewModelScope.launch(Dispatchers.IO) {
val recoveryKey = recoveryCode.value!!
try {
sharedViewModel.recoverUsingBackupPass(recoveryKey)
sharedViewModel.recoverUsingBackupRecoveryKey(recoveryKey)
} catch (failure: Throwable) {
recoveryCodeErrorText.postValue(stringProvider.getString(R.string.keys_backup_recovery_code_error_decrypt))
}