Skip to main content

send_thread_counts

Function send_thread_counts 

Source
pub(in sync::v3) fn send_thread_counts<'a, I>(
    reported: bool,
    thread_roots: I,
    admitted: impl Fn(&OwnedEventId) -> bool,
) -> bool
where I: IntoIterator<Item = &'a OwnedEventId>,
Expand description

Whether a joined-room entry carries MSC3773 per-thread counts.

A thread admitted names may report an otherwise empty room. Any other count only rides on a room the round already reports, or a room whose only change is a count would repeat in every round.