Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving encrypted messages over bad connection often fails #24296

Closed
yennor opened this issue Jan 23, 2023 · 4 comments
Closed

Receiving encrypted messages over bad connection often fails #24296

yennor opened this issue Jan 23, 2023 · 4 comments
Labels

Comments

@yennor
Copy link

yennor commented Jan 23, 2023

Steps to reproduce

  1. Receive a message while having a bad (horrible) internet connection

Outcome

What did you expect?

To receive the message and being able to read it.

What happened instead?

On the desktop "Unable to decrypt message" on android "Waiting for this message, this may take a while" appears.
On the desktop when reading the source, following is shown:
{ "type": "m.room.message", "content": { "msgtype": "m.bad.encrypted", "body": "** Unable to decrypt: DecryptionError: decryption key withheld **" } }

To make it a bit longer: I live in a region with bad internet coverage. A lot of lost packets over the internet links are quite common. Also that the connection comes and goes.
So when I'm somewhere with a bad connection, it often happens, that I receive a message, but it can not be decrypted (see above). Even when having a good internet connection again, the message will just never be decrypted. The sender never notices that, so he won't send the message again. Even when we are next to each other, switch on both phones, open element on both phones, wait a few minutes, the message won't be decrypted.
I didn't look into the matrix protocol, but I guess the key is send separately from the message, never arrives (packet lost on the way, or the connection just drops completely), and for whatever reason, the client never tries to get the key later on.
I'm not sure, if the same thing happens, when the sender has a bad connection, since I only notice it, when I'm receiving messages.
This problem persists since at least a year. So it doesn-t seem to depend on the client or server version.
Message send later on, when the connection is alright again (could be just a few minutes afterwards) arrive and are decrypted properly.

Operating system

Android & Debian Linux

Application version

1.74.0

How did you install the app?

No response

Homeserver

Synapse 1.73.0-1

Will you send logs?

No

@motey
Copy link

motey commented Jan 23, 2023

Same observation here. Uploaded some logs via the Desktop client.

@weeman1337
Copy link
Contributor

Thanks for reporting the issue @yennor . This looks like a duplicate of #24114 . You can follow the other issue for updates.

@weeman1337
Copy link
Contributor

weeman1337 commented Jan 24, 2023

Duplicate of #24114

@weeman1337 weeman1337 marked this as a duplicate of #24114 Jan 24, 2023
@weeman1337 weeman1337 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2023
@HammyHavoc
Copy link

Saw this today and rage-shaked crash logs. I was able to decrypt subsequent messages from the sender, but not previous ones, despite it having worked fine for 18 months until now. He also couldn't seem to send keys to be able to decrypt the messages that had the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants