Function fractal::utils::matrix::get_event_body

source ยท
pub fn get_event_body(
    event: &AnySyncOrStrippedTimelineEvent,
    sender_name: &str,
    own_user: &UserId,
    show_sender: bool,
) -> Option<String>
Expand description

Extract the body from the given event.

If the event does not have a body but is supported, this will return a localized string.

Returns None if the event type is not supported.