matrix_sdk_base::latest_event

Function is_suitable_for_latest_event

Source
pub fn is_suitable_for_latest_event<'a>(
    event: &'a AnySyncTimelineEvent,
    power_levels_info: Option<(&'a UserId, &'a RoomPowerLevels)>,
) -> PossibleLatestEvent<'a>
Expand description

Decide whether an event could be stored as the latest event in a room. Returns a LatestEvent representing our decision.