Skip to main content

snapshot_json

Function snapshot_json 

Source
pub fn snapshot_json(
    conn: &Connection,
    room: &str,
    at: &str,
) -> Result<Value, MatrixError>
Expand description

The room as it was right after at (an event this server holds): the state events of that state and the event itself, as stored wire JSON. A peer that is invited or joins starts its replica from this, with at as its only forward extremity, so the events that follow cite something it holds.