pub fn is_suitable_for_latest_event<'a>(
event: &'a AnySyncTimelineEvent,
power_levels_info: Option<(&'a UserId, &'a RoomPowerLevels)>,
) -> PossibleLatestEvent<'a>
Available on (crate features
e2e-encryption
or experimental-sliding-sync
) and crate feature e2e-encryption
only.Expand description
Decide whether an event could be stored as the latest event in a room. Returns a LatestEvent representing our decision.