New mid-sync encrypted messages will not update
See original GitHub issueDescribe 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
- Close Cinny
- Receive/send an encrypted message via another client
- Open Cinny
- Click that room before sync is complete
- 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:
- Created a year ago
- Comments:7 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.