mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Fix bug when restoring key backup with recovery key
This commit is contained in:
parent
2c5d2ea179
commit
5a8008a4dc
@ -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 🗣:
|
||||
-
|
||||
|
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user