timeline: beef up comment around TimelineEventContext::should_add_new_items

This commit is contained in:
Benjamin Bouvier
2024-08-29 16:40:50 +02:00
parent b4683c0ff5
commit b9628301ec

View File

@@ -105,6 +105,12 @@ pub(super) struct TimelineEventContext {
pub(super) read_receipts: IndexMap<OwnedUserId, Receipt>,
pub(super) is_highlighted: bool,
pub(super) flow: Flow,
/// If the event represents a new item, should it be added to the timeline?
///
/// This controls whether a new timeline *may* be added. If the update kind
/// is about an update to an existing timeline item (redaction, edit,
/// reaction, etc.), it's always handled by default.
pub(super) should_add_new_items: bool,
}