Function extract_thread_root_from_content

Source
pub fn extract_thread_root_from_content(
    content: Raw<AnyMessageLikeEventContent>,
) -> Option<OwnedEventId>
Expand description

Try to extract the thread root from an event’s content, if provided.

The thread root is the field located at m.relates_to.event_id, if the field at m.relates_to.rel_type is m.thread.

Returns None if we couldn’t find a thread root, or if there was an issue during deserialization.