Skip to main content

Module summary

Module summary 

Source
Expand description

The m.thread summary a thread root stores in its unsigned.

The functions here build, read and rewrite the bundle the threads service keeps on the root’s accepted row, and render a reply as its latest event.

Re-exportsΒ§

use std::collections::BTreeMap; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::UInt; πŸ”’
use ruma::events::AnySyncMessageLikeEvent; πŸ”’
use ruma::serde::Raw; πŸ”’
use ruma::uint; πŸ”’
use tuwunel_matrix::Event; πŸ”’
use tuwunel_matrix::Pdu; πŸ”’

ConstantsΒ§

BUNDLE_PATH πŸ”’

FunctionsΒ§

add_reply πŸ”’
bundle_count πŸ”’
canonical_json πŸ”’
canonical_object_field πŸ”’
counts_replies πŸ”’
Whether a root’s m.thread summary still counts a reply.
omit_thread_latest πŸ”’
remove_thread_bundle πŸ”’
set_thread_count πŸ”’
set_thread_latest πŸ”’
thread_bundle πŸ”’
thread_bundle_mut πŸ”’
Borrows the stored thread bundle for a summary rewrite.
thread_count πŸ”’
thread_latest πŸ”’
thread_reply_json πŸ”’
update_thread_bundle πŸ”’
Records event as the newest reply in a root’s unsigned.
update_thread_bundle_raw πŸ”’