question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Certain messages are not available after re-login

See original GitHub issue

Steps to reproduce

  1. I was using Element 1.11.8 on Mac.
  2. Logged out.
  3. Reset the password.
  4. Logged in again.
  5. In all chats, I could only see the last 2-3 messages (and no loading animation or something), the content of all of which was not shown due to the error: ** Unable to decrypt: The sender's device has not sent us the keys for this message. **.
  6. After about 20 seconds messages in the chat got loaded and I could see their content except that some messages (in my case: 2 last messages from the 1:1 chat) are not shown due ** Unable to decrypt: The sender's device has not sent us the keys for this message. ** error. Clicking on “Re-request encryption keys” only says “Key request sent.”, but the content of the message is still not shown.
  7. Meanwhile all other messages (the content of which has been successfully decrypted) have a grey shield icon, where each incoming message has a tooltip The authenticity of this encrypted message can't be guaranteed on this device. while all outgoing have Encrypted by a deleted session.
  8. The other person in the 1:1 chat gets online and we start talking, but the aforementioned 2 messages are still not available. One of those 2 messages turned into ** Unable to decrypt: Error: OLM.UNKNOWN_MESSAGE_INDEX ** error once that other person got online.

The issue is related to several other issues, so I was not sure if it’s existing but with a new reproduction scenario or a new one, I think it might be related to these:

So quite a few related issues, so I decided to create a new one to describe the reproduction steps (so that in the worst case I just provide more info for the dev folks in order to be added to the tracking issue).

Outcome

What did you expect?

I just wanted to see my messages after logging in.

What happened instead?

Certain messages cannot be decrypted and have quite an “unfriendly” (from the user perspective) error and I have to ask the person to re-send the messages telling them that what they sent to me is not readable on my device for some unknown reason, that’s a bit embarrassing.

Operating system

Mac OS Big Sur

Application version

Element 1.11.8

How did you install the app?

From the official web-site

Homeserver

matrix.org

Will you send logs?

Yes

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
menturioncommented, Oct 15, 2022

@uhoreg

FWIW, this will be fixed when #22711 gets implemented

When will device hydration finally be implemented? There are so many bug reports here that stem from the lack of this long-awaited and absolutely essential feature.

0reactions
pizdjukcommented, Oct 15, 2022

I encounter a similar problem if the interlocutor has a bad connection or at the time of sending a message, he loses connection.

{ "type": "m.room.message", "content": { "msgtype": "m.bad.encrypted", "body": "** Unable to decrypt: decryption key withheld **" } }

Perhaps there is a need for a mechanism for re-requesting the keys from the interlocutor or verifying the state of the keys for decryption.

same here. Was about to connect to VPN, and in this momen my interlocutor sent me a message. This was unable to decrypt. But the worse thing, that ALL of messages after it in this session were unable to decrypt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't sign in to your iMessage account or FaceTime on ...
Messages: Choose Messages > Settings (or Preferences), then click Sign Out. Sign in again with the same Apple ID you used on the...
Read more >
Top 8 Fixes to Messages Didn't Transfer to New iPhone
This guide will explain why messages didn't transfer to new iPhone and the solution to troubleshoot this problem.
Read more >
Unable to relogin - TeamViewer Community
When I first log in to teamviewer everything is fine, I can see my remote computers and connect, account working fine. But after...
Read more >
Teams chat history missing - Microsoft Community
Teams chat history missing. Some people have reported that some channels in teams are completely void of any messages within certain time frames ......
Read more >
[BUG]Messages not displaying in DM and channels #11516
Description: When a direct message is sent, the message is not displayed in the message window for the receiver. Sometimes it appears after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found