Skip to main content

Module message

Module message 

Source
Expand description

The structured message model.

This is the thing xtext never had. There, a chat line was a byte string with in-band escapes; a speaker, a message id, an avatar or a hit region had nowhere to live, which is why late features had to be smuggled in as a magic word (hxmedia:N) or a magic non-breaking-space sentinel. Here a message is a value with fields.

See docs/design.md “The message model”.

Structs§

GroupKey
What makes two adjacent messages “the same speaker, still”.
ImageSize
Intrinsic pixel size of an image block, as reported by the decoder.
Message
A row.
MessageFlags
Per-message rendering flags.
MessageId
Stable identity for one row, unique within a crate::ChatBuffer.
Speaker
Who said it.

Enums§

Block
One piece of a message’s body.
Blocks
A message’s body.
LoadMoreDirection
Which direction a MessageKind::LoadMore row pages in.
MessageKind
What a row is.