From 5a8008a4dc480aa7e0b99be5bac8eea18c6efd8a Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sat, 11 Jul 2020 12:26:04 +0200 Subject: [PATCH] Fix bug when restoring key backup with recovery key --- CHANGES.md | 1 + .../keysbackup/restore/KeysBackupRestoreFromKeyViewModel.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 81a0e11525..27794ed032 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 🗣: - diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/keysbackup/restore/KeysBackupRestoreFromKeyViewModel.kt b/vector/src/main/java/im/vector/riotx/features/crypto/keysbackup/restore/KeysBackupRestoreFromKeyViewModel.kt index faada7ba3e..2faff3d112 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/keysbackup/restore/KeysBackupRestoreFromKeyViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/keysbackup/restore/KeysBackupRestoreFromKeyViewModel.kt @@ -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)) }