Expand description
Retains original event JSON when accepted timeline events are redacted.
Originals are indexed by redaction time for periodic expiry. Saving and scheduled cleanup are controlled independently so operators can retain originals indefinitely when expiry is disabled.
Re-exportsยง
use std::sync::Arc;๐use std::time::Duration;๐use async_trait::async_trait;๐use futures::Stream;๐use futures::TryStreamExt;๐use ruma::CanonicalJsonObject;๐use ruma::EventId;๐use tuwunel_core::Result;๐use tuwunel_core::debug_info;๐use tuwunel_core::expected;๐use tuwunel_core::implement;๐use tuwunel_core::utils::BoolExt as _;๐use tuwunel_core::utils::TryReadyExt;๐use tuwunel_core::utils::time::now;๐use tuwunel_database::Deserialized;๐use tuwunel_database::Json;๐use tuwunel_database::Map;๐use tuwunel_matrix::pdu::PduEvent;๐use crate::rooms::timeline::RoomMutexGuard;๐
Structsยง
- Service
- Stores and expires the unredacted originals of redacted events.