Skip to main content

Module threads

Module threads 

Source

Re-exportsΒ§

use std::collections::BTreeSet; πŸ”’
use axum::extract::State; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use ruma::OwnedUserId; πŸ”’
use ruma::api::client::threads::get_threads; πŸ”’
use ruma::events::AnySyncMessageLikeEvent; πŸ”’
use ruma::events::GlobalAccountDataEventType; πŸ”’
use ruma::events::ignored_user_list::IgnoredUserListEvent; πŸ”’
use ruma::serde::Raw; πŸ”’
use tuwunel_core::Err; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::at; πŸ”’
use tuwunel_core::result::FlatOk; πŸ”’
use tuwunel_core::result::LogErr; πŸ”’
use tuwunel_core::utils::stream::TryWidebandExt; πŸ”’
use tuwunel_matrix::Event; πŸ”’
use tuwunel_matrix::pdu::PduCount; πŸ”’
use tuwunel_matrix::pdu::PduEvent; πŸ”’
use tuwunel_service::rooms::pdu_metadata::IgnoredThreadView; πŸ”’
use crate::Ruma; πŸ”’

FunctionsΒ§

adjust_thread_bundle πŸ”’
apply_ignored_view πŸ”’
MSC3856 ignored-user adjustments, applied after the bundle pass corrects the served unsigned: the redacted root replaces content only and keeps that unsigned, minus any m.replace bundle (a folded edit shares the root’s sender, so it would re-serve the ignored content).
apply_redacted_root πŸ”’
get_threads_route πŸ”’
GET /_matrix/client/r0/rooms/{roomId}/threads
without_thread_bundle πŸ”’