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 room-topic content to a non-empty plain-text rendering.

The m.topic block’s text/plain representation takes precedence under MSC3765, followed by the legacy topic field. Empty values yield None.