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.threadsummary 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
eventas the newest reply in a rootβsunsigned. - update_
thread_ πbundle_ raw