mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Fix bug when restoring key backup with recovery key
This commit is contained in:
parent
2c5d2ea179
commit
5a8008a4dc
2 changed files with 2 additions and 1 deletions
|
@ -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 a new issue