Merge pull request #1367 from vector-im/feature/fix_crash_1366

Fix crash on restore backup from ky
This commit is contained in:
Benoit Marty 2020-05-14 16:07:40 +02:00 committed by GitHub
commit 4698cf7a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@ Bugfix 🐛:
- Fix | Verify Manually by Text crashes if private SSK not known (#1337)
- Sometimes the same device appears twice in the list of devices of a user (#1329)
- Random Crashes while doing sth with cross signing keys (#1364)
- Crash | crash while restoring key backup (#1366)
Translations 🗣:
-

View file

@ -51,7 +51,7 @@ class KeysBackupRestoreFromKeyViewModel @Inject constructor(
try {
sharedViewModel.recoverUsingBackupPass(recoveryKey)
} catch (failure: Throwable) {
recoveryCodeErrorText.value = stringProvider.getString(R.string.keys_backup_recovery_code_error_decrypt)
recoveryCodeErrorText.postValue(stringProvider.getString(R.string.keys_backup_recovery_code_error_decrypt))
}
}
}