element-ios: Error message "Unable to decrypt. MatrixSDKCrypto.DecryptionError" appears randomly in a chat with a single user
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:
** 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
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 17 (1 by maintainers)
Was about to create that same issue. Happens to all IOS users and nearly daily, happens never on any other platforms. Annoyance factor is very high.
Addional investigation comments:
@Velin92 In my user base it’s not occasional - it happens nearly daily to all users with the IOS app. I even listed it in my “Troubleshooting FAQ”
Can someone please chime into as why this is closed? This is a SEVERE bug. As a very long-time Element (Riot/Matrix) user, going way, way back, and in fact even a paying user of various services, even trying the Signal bridge (which was cancelled unceremoniously! I might add, without a word), etc, as a multi-platform user, who up until this point was on macOS, Windows, Linux, and Android (but iOS very limited using only an iPad which worked without this problem), this is now a completely DAILY occurrence), making Element almost unusable!
(having written a long explanation that’s just not necessary, I’ll simply say: I thank the developers for all of the extremely hard work, but this is making Element nearly impossible to use! And we try to use it as a PRIMARY communications channel!)
Truly, due to recently switching to iOS from Android due to a number of factors, this is nearly unusable, as missing messages, missing attachments, and other problems make it unreliable.
Please open this issue once again!
@garret @Velin92
The IOS app is unusable. Unclear on why this is labelled ‘minor’, there should be no higher item than this.
I thought perhaps the user I was having issues with was at fault in some way, but yesterday I removed our chat in person and started a new room and manually got both of their IOS devices cross verified (difficult due to how buggy the verification interface is on IOS.) Today after they shared a link, we’re back to grey messages about decryption.
Steps to reproduce:
Also having this:
@discoltk Using the Share Extension is definitely broken, it produces wrong message indices: https://github.com/vector-im/element-ios/issues/7499
That’s one thing I have no understanding that this is also not major with highest priority.
I still do not understand why there is no server configuration to have the ability that DM chat rooms are clear by default and the encryption can be enabled by the participants if they want E2EE. There are still so many E2EE bugs, especially in IOS.
And creating unencrypted DM rooms is possible, but a mess for both sides as action is required (set the room to DM etc.).