Module event_preview

Source

Structs§

TextPreview
A text preview of a timeline event, plus how a username should be displayed before it.

Enums§

BeforeText
What should be displayed before the text preview of an event.

Functions§

plaintext_body_of_timeline_item
Returns the plaintext body of the given timeline event.
text_preview_of_member_profile_change
Returns a text preview of the given member profile change as a plaintext or HTML-formatted string.
text_preview_of_message
Returns a text preview of the given message as an Html-formatted string.
text_preview_of_other_state
Returns a text preview of the given other state event as an Html-formatted string.
text_preview_of_room_membership_change
Returns a text preview of the given room membership change as a plaintext or HTML-formatted string.
text_preview_of_timeline_item
Returns a text preview of the given timeline event as an Html-formatted string.