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§
Sourcefn counts_as_unread(&self) -> bool
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.
Sourcefn can_show_header(&self) -> bool
fn can_show_header(&self) -> bool
Whether we can show the header for this content.