fractal::utils::matrix

Function get_message_event_body

source
pub fn get_message_event_body(
    event: &AnySyncMessageLikeEvent,
    sender_name: &str,
    show_sender: bool,
) -> Option<String>
Expand description

Extract the body from the given message event.

If it’s a media message, this will return a localized body.

Returns None if the message type is not supported.