mirror of
https://github.com/element-hq/element-android
synced 2024-11-26 19:35:42 +03:00
fix new error reported from rust side
This commit is contained in:
parent
1b4885ccab
commit
ebed3195bf
1 changed files with 5 additions and 2 deletions
|
@ -468,10 +468,13 @@ internal class OlmMachine @Inject constructor(
|
|||
)
|
||||
} catch (throwable: Throwable) {
|
||||
val reThrow = when (throwable) {
|
||||
is DecryptionException.Megolm -> {
|
||||
// TODO more bindings for missing room key
|
||||
is DecryptionException.MissingRoomKey -> {
|
||||
MXCryptoError.Base(MXCryptoError.ErrorType.UNKNOWN_INBOUND_SESSION_ID, throwable.message.orEmpty())
|
||||
}
|
||||
is DecryptionException.Megolm -> {
|
||||
// TODO check if it's the correct binding?
|
||||
MXCryptoError.Base(MXCryptoError.ErrorType.UNKNOWN_MESSAGE_INDEX, throwable.message.orEmpty())
|
||||
}
|
||||
is DecryptionException.Identifier -> {
|
||||
MXCryptoError.Base(MXCryptoError.ErrorType.BAD_EVENT_FORMAT, MXCryptoError.BAD_EVENT_FORMAT_TEXT_REASON)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue