-
Notifications
You must be signed in to change notification settings - Fork 287
Only the initial chunk of events gets decrypted if events are loaded from the event cache store. #4762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I think the way to fix this would be:
Of course, a better fix would be #3872. |
Hywan
added a commit
to Hywan/matrix-rust-sdk
that referenced
this issue
Mar 12, 2025
This patch fixes a bug where events coming from the event cache might be encrypted, see matrix-org#4762 to learn more. This patch updates the `room_event_cache_updates_task` to call `TimelineController::retry_event_decryption` if the origin is `Cache`.
Hywan
added a commit
to Hywan/matrix-rust-sdk
that referenced
this issue
Mar 14, 2025
This patch fixes a bug where events coming from the event cache might be encrypted, see matrix-org#4762 to learn more. This patch updates the `room_event_cache_updates_task` to call `TimelineController::retry_event_decryption` if the origin is `Cache`.
Hywan
added a commit
that referenced
this issue
Mar 14, 2025
This patch fixes a bug where events coming from the event cache might be encrypted, see #4762 to learn more. This patch updates the `room_event_cache_updates_task` to call `TimelineController::retry_event_decryption` if the origin is `Cache`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the event cache with storage enabled, events are persisted in the database. Since room keys may not always arrive in the same sync as the event—sometimes arriving later—it is expected that m.room.encrypted events will be stored in the event cache.
Upon reloading and inserting these events into the timeline, the initial chunk of events will get decrypted during timeline construction:
matrix-rust-sdk/crates/matrix-sdk-ui/src/timeline/builder.rs
Lines 490 to 495 in 6c9b1ef
However, when additional events are loaded from the cache, no decryption logic is exists. As a result, undecryptable events (UTDs) will not fix themselves unless the application explicitly requests a redecryption.
The text was updated successfully, but these errors were encountered: