fractal::utils::matrix::ext_traits

Trait TimelineItemContentExt

Source
pub(crate) trait TimelineItemContentExt {
    // Required methods
    fn counts_as_unread(&self) -> bool;
    fn can_show_header(&self) -> bool;
    fn is_edited(&self) -> bool;
}
Expand description

Extension trait for TimelineItemContent.

Required Methods§

Source

fn counts_as_unread(&self) -> bool

Whether this content can count as an unread message.

This follows the algorithm in MSC2654, excluding events that we do not show in the timeline.

Source

fn can_show_header(&self) -> bool

Whether we can show the header for this content.

Source

fn is_edited(&self) -> bool

Whether this content is edited.

Implementations on Foreign Types§

Source§

impl TimelineItemContentExt for TimelineItemContent

Implementors§