pub struct MessageFlags(pub u8);Expand description
Per-message rendering flags.
Tuple Fields§
§0: u8Implementations§
Source§impl MessageFlags
impl MessageFlags
pub const NONE: MessageFlags
Sourcepub const HIGHLIGHT: MessageFlags
pub const HIGHLIGHT: MessageFlags
Matched the highlight word list — the whole row draws emphasised.
Sourcepub const MUTED: MessageFlags
pub const MUTED: MessageFlags
Backfilled history: drawn in the muted secondary colour.
Sourcepub const ACTION: MessageFlags
pub const ACTION: MessageFlags
A /me action: “* nick does something”, no nick column.
Sourcepub const OUTGOING: MessageFlags
pub const OUTGOING: MessageFlags
Originated here rather than arriving from the server.
Direction, not sender identity — “is the sender me” cannot tell
the echo of a message you just sent from the server’s copy of it
when you message yourself, and grouping needs to. See
rotulus.h’s ROTULUS_ROW_OUTGOING.
Sourcepub const DELETED: MessageFlags
pub const DELETED: MessageFlags
Server tombstone for a deleted message.
Sourcepub const GROUPED: MessageFlags
pub const GROUPED: MessageFlags
A continuation of the row above: same speaker, close in time, so
the gutter is suppressed and only the body draws. Set by
ChatBuffer, never by the caller — it is a
property of a message’s neighbours, not of the message, and
gets recomputed when they change.