Skip to main content

Module context

Module context 

Source

Structsยง

ContextArgs ๐Ÿ”’
Shared inputs for event_context, the core behind both the client-server /context route and the admin room-context endpoint.
TimelineHalf ๐Ÿ”’
Shared inputs for the two collect_timeline_half calls assembling the before and after windows; only the stream and take count differ per call.

Constantsยง

LIMIT_DEFAULT ๐Ÿ”’
LIMIT_MAX ๐Ÿ”’

Functionsยง

build_state_response ๐Ÿ”’
collect_timeline_half ๐Ÿ”’
event_context ๐Ÿ”’
Loads the timeline window around an event with its state and aggregations, applying (unless bypass_visibility) the per-user visibility and ignore checks. Powers the client-server /context route and its admin bypass twin.
get_context_route ๐Ÿ”’
GET /_matrix/client/r0/rooms/{roomId}/context/{eventId}
load_state_ids ๐Ÿ”’
resolve_base_event ๐Ÿ”’