Skip to main content

Module message

Module message 

Source

StructsΒ§

MessagesArgs πŸ”’
Shared inputs for get_messages, the pagination core behind both the client-server /messages route and the admin room-messages endpoint.

ConstantsΒ§

IGNORED_MESSAGE_TYPES πŸ”’
list of safe and common non-state events to ignore if the user is ignored. MUST be sorted by TimelineEventType::event_type_str() for binary_search.
LIMIT_DEFAULT πŸ”’
LIMIT_MAX πŸ”’

FunctionsΒ§

_is_sorted πŸ”’
add_membership_unsigned πŸ”’
with_membership adapter for timeline-iterator items.
annotate_membership πŸ”’
MSC4115: stamp unsigned.membership on a served PDU with the requesting user’s membership at the time of the event. The MSC permits omitting the property when calculating it is expensive, so the project restricts it to encrypted rooms where membership-vs-event ordering matters for key share.
event_filter πŸ”’
event_filters πŸ”’
get_member_event πŸ”’
get_message_events_route πŸ”’
GET /_matrix/client/r0/rooms/{roomId}/messages
get_messages πŸ”’
Paginates a room’s timeline, applying the request filter and (unless bypass_visibility) the per-user visibility and ignore filters. Powers the client-server /messages route and its admin bypass twin.
ignored_filter πŸ”’
is_ignored_pdu πŸ”’
lazy_loading_witness πŸ”’
related_by_filter πŸ”’
MSC3440 related_by_*: include an event only when another event relates to it matching the filter’s reverse-relation criteria. A no-op stage when the filter carries neither field.
visibility_filter πŸ”’
with_membership πŸ”’
annotate_membership consume-and-return adapter for stream chains.

Type AliasesΒ§

RelTypes πŸ”’
MSC3440 related_by_rel_types entries, typed at the compare boundary.