Skip to main content

as_blocks

Function as_blocks 

Source
fn as_blocks(messages: Vec<Message>) -> Vec<Message>
Expand description

A history as the CLI wrote it, with its task notices in the shape a view reads an ending from.

The read converts these and the seed must too. notices_as_blocks is applied where a conversation is READ off disk, and a held copy seeded from a connect takes the history as the WIRE carries it - so a resumed seat would serve a <task-notification> row as the reader’s own words, with the ending unread and, for a notice in the same turn as its call, nothing ending that call at all. Idempotent, so a history that came through the read is unchanged.