Module timeline

Source

Structs§

BackwardsPaginateUntilEventRequest
A request to search backwards for a specific event in a room’s timeline.
TimelineUiState
The UI-side state of a single room’s timeline, which is only accessed/updated by the UI thread.

Enums§

PaginationDirection
Which direction to paginate in.
TimelineUpdate
A message that is sent from a background async task to a room’s timeline view for the purpose of update the Timeline UI contents or metadata.

Statics§

TIMELINE_STATES
The global set of all timeline states, one entry per room.

Functions§

take_timeline_endpoints
Returns three channel endpoints related to the timeline for the given joined room.
timeline_subscriber_handler
A per-room async task that listens for timeline updates and sends them to the UI thread.
update_latest_event
Handles the given updated latest event for the given room.

Type Aliases§

TimelineRequestSender
A tokio::watch channel sender for sending requests from the RoomScreen UI widget to the corresponding background async task for that room (its timeline_subscriber_handler).