Skip to main contentModule threads
Source use std::collections::BTreeMap; π use std::iter::once; π use std::pin::pin; π use std::sync::Arc; π use futures::Stream; π use futures::StreamExt; π use futures::TryFutureExt; π use futures::TryStreamExt; π use futures::future::join3; π use futures::future::ready; π use ruma::CanonicalJsonObject; π use ruma::CanonicalJsonValue; π use ruma::EventId; π use ruma::OwnedEventId; π use ruma::OwnedUserId; π use ruma::RoomId; π use ruma::UInt; π use ruma::UserId; π use ruma::api::Direction; π use ruma::api::client::threads::get_threads::v1::IncludeThreads; π use ruma::events::TimelineEventType; π use ruma::events::relation::RelationType; π use ruma::events::room::encrypted::Relation; π use ruma::uint; π use serde::Deserialize; π use serde::Deserialize; π use tuwunel_core::Err; π use tuwunel_core::Error; π use tuwunel_core::Result; π use tuwunel_core::err; π use tuwunel_core::error; π use tuwunel_core::error; π use tuwunel_core::implement; π use tuwunel_core::itertools::Either::Left; π use tuwunel_core::itertools::Either::Right; π use tuwunel_core::itertools::Itertools; π use tuwunel_core::utils::BoolExt; π use tuwunel_core::utils::ReadyExt; π use tuwunel_core::utils::result::LogErr; π use tuwunel_core::utils::result::NotFound; π use tuwunel_core::utils::stream::TryBroadbandExt; π use tuwunel_core::utils::stream::TryIgnore; π use tuwunel_core::utils::stream::TryReadyExt; π use tuwunel_core::utils::stream::WidebandExt; π use tuwunel_database::Deserialized; π use tuwunel_database::Map; π use tuwunel_database::Txn; π use tuwunel_matrix::Event; π use tuwunel_matrix::Pdu; π use tuwunel_matrix::pdu::PduCount; π use tuwunel_matrix::pdu::PduEvent; π use tuwunel_matrix::pdu::PduId; π use tuwunel_matrix::pdu::RawPduId; π pub(crate) use self::summary::thread_bundle_mut; π use self::summary::counts_replies; π use self::summary::omit_thread_latest; π use self::summary::set_thread_count; π use self::summary::set_thread_latest; π use self::summary::thread_bundle; π use self::summary::thread_count; π use self::summary::thread_latest; π use self::summary::thread_reply_json; π use self::summary::update_thread_bundle; π use crate::integrity::undecodable_as; π use crate::rooms::pdu_metadata::RelationQuery; π use crate::rooms::timeline::Mapped; π
- summary π
- The
m.thread summary a thread root stores in its unsigned.
- Data π
- ExtractThreadRelation π
- Recount π
- A thread rootβs stored summary set against its replies.
- RedactedRoot π
- A thread root rewritten for the redaction of one of its replies.
- Service
- ThreadRelation π
- Latest π
- What became of a summaryβs latest reply.
- MAX_THREAD_HOPS π
- Maximum relation hops walked when resolving thread membership, per
the Matrix v1.4 spec recommendation (also MSC3771/MSC3773).
- activity_key π
- The key of the activity row listing a thread at
count. - is_thread_reply π
- lists_participant π
- Reports whether a stored participant row names
user_id. - root_id π
- thread_root π
- Returns the thread root named by borrowed event content.
- unreadable_only π
- Keeps a failed rootβs error only when the storage engine could not read it.