Function matrix_sdk_ui::timeline::default_event_filter

source ·
pub fn default_event_filter(
    event: &AnySyncTimelineEvent,
    room_version: &RoomVersionId
) -> bool
Expand description

The default event filter for crate::timeline::TimelineBuilder::event_filter.

It filters out events that are not rendered by the timeline, including but not limited to: reactions, edits, redactions on existing messages.

If you have a custom filter, it may be best to chain yours with this one if you do not want to run into situations where a read receipt is not visible because it’s living on an event that doesn’t have a matching timeline item.