Skip to main contentModule read_marker
Source use futures::future::try_join; π use ruma::EventId; π use ruma::MilliSecondsSinceUnixEpoch; π use ruma::RoomId; π use ruma::UserId; π use ruma::events::RoomAccountDataEventType; π use ruma::events::fully_read::FullyReadEvent; π use ruma::events::fully_read::FullyReadEventContent; π use ruma::events::receipt::ReceiptThread; π use serde_json::to_value; π use tuwunel_core::Err; π use tuwunel_core::Result; π use tuwunel_core::debug; π use tuwunel_core::debug; π use tuwunel_core::debug_warn; π use tuwunel_core::err; π use tuwunel_core::utils::result::LogErr; π use tuwunel_core::utils::result::NotFound; π use tuwunel_matrix::Event; π use tuwunel_matrix::PduCount; π use tuwunel_matrix::PduId; π use tuwunel_service::Services; π use tuwunel_service::rooms::read_receipt::PrivateRead; π pub(crate) use self::read_markers::set_read_marker_route; π pub(crate) use self::receipt::create_receipt_route; π
- read_markers π
- receipt π
- ensure_receipt_visible π
- reset_and_refresh_badge π
- Clears the receiptβs notification counts and refreshes the push badge.
- set_fully_read π
- Stores
event as the userβs fully-read marker unless that would move the
marker backwards. - set_private_marker π
- Resolves
event to its timeline position and stores the private read
marker for thread there.