Skip to main content Module data Copy item path Source use std::collections::BTreeMap ; ๐ use std::sync::Arc ; ๐ use futures::Stream; ๐ use futures::TryStreamExt; ๐ use futures::future::join; ๐ use futures::future::try_join; ๐ use ruma::CanonicalJsonObject; ๐ use ruma::EventId; ๐ use ruma::OwnedEventId; ๐ use ruma::RoomId; ๐ use ruma::UserId; ๐ use ruma::events::AnySyncEphemeralRoomEvent; ๐ use ruma::events::receipt::ReceiptEvent; ๐ use ruma::serde::Raw; ๐ use serde::Deserialize ; ๐ use serde::Deserialize ; ๐ use serde::de::IgnoredAny ; ๐ use tuwunel_core::Result ; ๐ use tuwunel_core::error ; ๐ use tuwunel_core::error ; ๐ use tuwunel_core::result::NotFound ; ๐ use tuwunel_core::smallvec::SmallVec; ๐ use tuwunel_core::trace ; ๐ use tuwunel_core::utils::ReadyExt ; ๐ use tuwunel_core::utils::TryReadyExt ; ๐ use tuwunel_core::utils::stream::TryIgnore ; ๐ use tuwunel_database::Deserialized ; ๐ use tuwunel_database::Interfix ; ๐ use tuwunel_database::Json ; ๐ use tuwunel_database::KeyBuf ; ๐ use tuwunel_database::Map ; ๐ use tuwunel_database::Txn ; ๐ use tuwunel_database::serialize_key ; ๐ use tuwunel_matrix::pdu::PduCount ; ๐ use super::PrivateRead ; ๐ use super::ThreadKind ; ๐ Data ๐ StoredContent ๐ Minimal read-back of a stored receipt row. event_thread_kind ๐ Tag string used in the storage key to discriminate receipts per thread.
Empty for Unthreaded, "main" for Main, the event-id string for
Thread(...) (event ids start with $, so the values are mutually
exclusive). Custom variants reuse their string form; the C/S boundary
rejects them, but federation receipts may still carry them through. position_advances ๐ Whether an incoming receipt position strictly advances the stored one. private_read_row_stream ๐ Per-thread marker rows under (room, user) in map. stored_event_id ๐ First event id named by a stored receipt row. ReceiptItem ๐ RowKv ๐ Row shape shared by the active and mirrored private read maps. Superseded ๐ Receipt rows an accepted update replaces.