matrix-org / matrix-org/matrix-rust-sdk
Some historic messages are undecryptable, but are loaded much later
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 500
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 106
Description
Sometimes, often when you scroll a long way up your timeline, you encounter occasional unable-to-decrypt messages. (Empirically, it seems like the further back you go, the more UTD messages you find.)
Often, if you come back later on, some of those UTD messages are decrypted.
When we look at the logs, we see:
* Decryption error
* Key retrieved from backup
* But no attempt to re-decrypt (until much later)
In other words, this sounds much the same as #3768, but it's intermittent.
Contributor guide
Research direction
Start by comparing this intermittent behavior with issue #3768 and tracing the logs from the decryption error through key retrieval from backup. Done means historic unable-to-decrypt messages are retried promptly after their keys are retrieved, rather than remaining undecryptable until much later.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100