From c3245a4f22ae919b0ebc4dcd52fc56fb1e128a6c Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 12 Mar 2025 15:30:22 +0100 Subject: [PATCH] fix(sdk): Events loaded from the cache have `EventsOrigin::Cache`. This patch fixes the `EventsOrigin` value for events loaded from the cache, it was `Pagination`, now it is `Cache`. --- crates/matrix-sdk/src/event_cache/pagination.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk/src/event_cache/pagination.rs b/crates/matrix-sdk/src/event_cache/pagination.rs index 84ba214ad..50dc25565 100644 --- a/crates/matrix-sdk/src/event_cache/pagination.rs +++ b/crates/matrix-sdk/src/event_cache/pagination.rs @@ -226,7 +226,7 @@ impl RoomPagination { let _ = self.inner.sender.send(RoomEventCacheUpdate::UpdateTimelineEvents { diffs: timeline_event_diffs, - origin: EventsOrigin::Pagination, + origin: EventsOrigin::Cache, }); }