Skip to main content

compute_gates

Function compute_gates 

Source
pub(in sync::v3) fn compute_gates<F: Fn(u64) -> bool>(
    _: GateInputs<'_>,
    in_window: F,
) -> Gates<impl Fn(&UInt) -> bool + use<F>>
Expand description

The gates deciding what notification counts a joined room reports.

A room count, or a zero thread count, reaches the client when the round carried timeline events or a read cursor advanced within the window. An explicit zero room count additionally needs a cursor newer than the request token, and because the response cutoff is captured before that cursor is read, a cursor past the cutoff repeats the zero until the token catches up.