pub(crate) fn message_notification_body(
event: &AnySyncOrStrippedTimelineEvent,
sender_name: &str,
show_sender: bool,
) -> Option<String>
Expand description
Generate the notification body for the given event, if it is a message-like event.
If it’s a media message, this will return a localized body.
Returns None
if it is not a message-like event or if the message type is
not supported.