Skip to main content

messages_from_rows

Function messages_from_rows 

Source
pub(crate) fn messages_from_rows(
    rows: Vec<SessionMessage>,
    session_id: &str,
) -> Vec<Message>
Expand description

The rows a transcript’s messages convert to, typed as the wire sends them and stamped with session_id.

One conversion for every read of a transcript. A resume hands these messages over as history and a paging span read hands them over as a page below the window; a second copy of the conversion is how the two would come to type the same row differently.