Element-R: when sending a first message in a room some device might be ignored because of recently tracked users not yet downloaded #26439
Labels
A-Element-R
Issues affecting the port of Element's crypto layer to Rust
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
Z-Labs
Z-UISI
Unable to decrypt errors
Steps to reproduce
After a login with lazy loading, try to send a message quickly in a room. (in order to reproduce more easily you need the fix for lazy loading problem)
Outcome
What did you expect?
The message to be sent to all devices in the room
What happened instead?
Some users in the room have just been loaded (via a /member call), and marked as tracked. But the key/query has not yet be done (only done at the end of a sync when processing outgoing requests)
This is visible in the logs:
Occurence of this log in rageshakes: https://rageshake-search.tools.element.io/search_logs?log=some+devices+might+be+missing
EX is calling
self.query_keys_for_untracked_users().await?;
before sharing room keys.Operating system
macOS
Application version
No response
How did you install the app?
No response
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: