Skip to main content

plain_text_topic

Function plain_text_topic 

Source
pub(crate) fn plain_text_topic(content: RoomTopicEventContent) -> Option<String>
Expand description

Resolves an m.room.topic to its plain-text rendering: the m.topic block’s text/plain representation when present (MSC3765), else the legacy topic field; None when neither yields a non-empty string.