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.

New mid-sync encrypted messages will not update

See original GitHub issue

Describe the bug

If you use multiple Matrix clients, and speak often in e2ee conversations, you will find that if you happen to resync Cinny and click on an e2ee room with new messages before the sync is complete, you will see the ** Unable to decrypt: The sender's device has not sent us the keys for this message. ** text (on an unrelated note - this text should really be specially formatted and less screamy). Obviously this is normal behavior, but the bug occurs because the text does not update on its own once the keys have been received - you have to refresh that room to see the new message content.

Reproduction

  1. Close Cinny
  2. Receive/send an encrypted message via another client
  3. Open Cinny
  4. Click that room before sync is complete
  5. You will see the ** Unable to decrypt: The sender's device has not sent us the keys for this message. ** text even after the keys have been received and synced

Expected behavior

The moment the corresponding keys were received, the text in the room should update for the decrypted content.

Platform and versions

1. OS: Arch Linux x86_64
2. Browser: Ungoogled Chromium v104.0.5112.79 (official build)
3. Cinny version: v2.1.2 (app.cinny.in)
4. Matrix homeserver: gra.im (Synapse)

Additional context

No response

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ghostcommented, Aug 30, 2022

That’s a much more convenient option. If you’re logging in on a new session, it should ask you to verify, and once completed, automatically restore the keys.

0reactions
luphoriacommented, Aug 31, 2022

I think this is what I’m having problems with as well. I’ve logged into Cinny multiple times, but I can’t read any of my DMs as Cinny won’t decrypt the messages.

To clarify - I can view my messages after the keys sync; however, if I am currently viewing a room with encryption enabled before the keys have synced, then the “decryption failed” messages persist until I refresh that particular room.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use end-to-end encryption in Messages - Google Support
Initially, some messages may not appear or they may be delivered in an unreadable, encrypted format. If you get an unreadable, encrypted message:...
Read more >
Use S/MIME to send and receive encrypted messages in the ...
When you configure S/MIME for your account, you can choose to "Encrypt by Default" when you compose new messages: Open the Settings app....
Read more >
Legacy information for Office 365 Message Encryption
Understand how to transition legacy files to Office 365 Message Encryption (OME) for your organization.
Read more >
CONNECTIONS Tip Sheet - Encrypting Email ... - NY.gov
This Tip Sheet explains how to send encrypted email messages using Outlook 365 or Outlook Web Access (OWA) when the CONNECTIONS application is...
Read more >
Setting up advanced chat encryption - Zoom Support
Troubleshooting failures to decrypt messages. When using advanced chat encryption, there may be situations where a sent message cannot be ...
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