Skip to content

Commit 3bada45

Browse files
committed
fix(ui): Events received from the event cache trigger a decryption.
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`.
1 parent 2785fac commit 3bada45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/matrix-sdk-ui/src/timeline/builder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ async fn room_event_cache_updates_task(
393393
},
394394
)
395395
.await;
396+
397+
if matches!(origin, EventsOrigin::Cache) {
398+
timeline_controller.retry_event_decryption(None).await;
399+
}
396400
}
397401

398402
RoomEventCacheUpdate::AddEphemeralEvents { events } => {

0 commit comments

Comments
 (0)