Skip to main content

timeline_prev_batch

Function timeline_prev_batch 

Source
fn timeline_prev_batch(
    timeline_pdus: &[(PduCount, PduEvent)],
    window_end: PduCount,
) -> Option<PduCount>
Expand description

Returns the backward pagination token for a timeline slice.

A slice beginning at room creation has nothing before it, so its window’s end lets a members query describe the room as received. Backward pagination from that token re-reads the slice once before ending.