element-hq / element-hq/element-ios

Error message "Unable to decrypt. MatrixSDKCrypto.DecryptionError" appears randomly in a chat with a single user

Open
#7,591 19 comments 3 reactions 0 assignees View on GitHub
A-E2EE O-Frequent S-Major T-Defect
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

I self-host a dendrite instance (via docker, federation disabled) on a Raspberry Pi 4 (4GB) where there are at the moment only 2 users in total. One user uses element on iOS and randomly gets an error message where it has been impossible to establish the steps to reproduce how to get that error. The error appears randomly when the chat window with the other user is opened or when a message is being typed. It is also difficult to foresee how often the error will happen. Sometimes it can be twice a day, while other times it could be once a week.

The other user – which uses element on an Android device – has never experienced the error described in this issue.

### Outcome

The user using element on iOS expects to write a message but it is instead sometimes and randomly presented with the error as in the following screenshot:

![ima_f2bd398](https://github.com/vector-im/element-ios/assets/27555/3e5eaf34-42fa-4b00-9172-876c5d9fe838)

```
** Unable to decrypt: Handlingen kunne ikke udføres.
(MatrixSDKCrypto.DecryptionError fejl 2.) **
```

Element iOS interface is set in English but the iOS system language is Danish.
`Handlingen kunne ikke udføres` could be translated as `The operation couldn't be performed`.
`Fejl` in Danish is `Error`.

Additional information taken from the Element iOS settings that might help:
```
Matrix SDK 0.26.10
Rust Crypto SDK 0.6.0 (Vodozemac 0.3.0)
```

### Your phone model

iPhone 8

### Operating system version

iOS 16.5

### Application version

Element 1.10.12 (20230516163937)

### Homeserver

Dendrite 0.12.0+74dc546

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.