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`.
This commit is contained in:
Ivan Enderlin
2025-03-12 15:30:22 +01:00
parent da89a53605
commit c3245a4f22

View File

@@ -226,7 +226,7 @@ impl RoomPagination {
let _ =
self.inner.sender.send(RoomEventCacheUpdate::UpdateTimelineEvents {
diffs: timeline_event_diffs,
origin: EventsOrigin::Pagination,
origin: EventsOrigin::Cache,
});
}