Fix bug when restoring key backup with recovery key
This commit is contained in:
parent
2c5d2ea179
commit
5a8008a4dc
|
@ -13,6 +13,7 @@ Improvements 🙌:
|
||||||
Bugfix 🐛:
|
Bugfix 🐛:
|
||||||
- Regression | Share action menu do not work (#1647)
|
- Regression | Share action menu do not work (#1647)
|
||||||
- verification issues on transition (#1555)
|
- verification issues on transition (#1555)
|
||||||
|
- Fix issue when restoring keys backup using recovery key
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -49,7 +49,7 @@ class KeysBackupRestoreFromKeyViewModel @Inject constructor(
|
||||||
viewModelScope.launch(Dispatchers.IO) {
|
viewModelScope.launch(Dispatchers.IO) {
|
||||||
val recoveryKey = recoveryCode.value!!
|
val recoveryKey = recoveryCode.value!!
|
||||||
try {
|
try {
|
||||||
sharedViewModel.recoverUsingBackupPass(recoveryKey)
|
sharedViewModel.recoverUsingBackupRecoveryKey(recoveryKey)
|
||||||
} catch (failure: Throwable) {
|
} catch (failure: Throwable) {
|
||||||
recoveryCodeErrorText.postValue(stringProvider.getString(R.string.keys_backup_recovery_code_error_decrypt))
|
recoveryCodeErrorText.postValue(stringProvider.getString(R.string.keys_backup_recovery_code_error_decrypt))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue