Function get_or_fetch_event_sender

Source
pub fn get_or_fetch_event_sender(
    event_tl_item: &EventTimelineItem,
    room_id: Option<&OwnedRoomId>,
) -> String
Expand description

Returns the sender’s display name if available.

If not available, and if the room_id is provided, this function will submit an async request to fetch the event details. In this case, this will return the event sender’s user ID as a string.