Expand description
Replaces accepted timeline events with their room-version redacted form.
Redaction can retain the original JSON for operators and removes searchable or relational content before overwriting the accepted row. These side effects are coordinated under the callerβs room timeline guard.
Re-exportsΒ§
use std::mem::take;πuse futures::future::join;πuse ruma::CanonicalJsonObject;πuse ruma::CanonicalJsonValue;πuse ruma::EventId;πuse ruma::RoomId;πuse ruma::canonical_json::RedactedBecause;πuse ruma::canonical_json::redact_in_place;πuse ruma::events::TimelineEventType;πuse ruma::room_version_rules::RedactionRules;πuse tuwunel_core::Result;πuse tuwunel_core::err;πuse tuwunel_core::implement;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::OptionExt;πuse tuwunel_core::utils::result::NotFound;πuse tuwunel_core::utils::to_canonical_object;πuse tuwunel_matrix::event::Event;πuse tuwunel_matrix::pdu::PRIVATE_UNSIGNED;πuse super::Position;πuse crate::integrity::leading_json;πuse crate::rooms::short::ShortRoomId;πuse crate::rooms::threads::thread_bundle_mut;πuse crate::rooms::threads::thread_root;πuse crate::rooms::timeline::RoomMutexGuard;π
EnumsΒ§
- Restoration π
- What recording a redaction on the event it redacts would do.
FunctionsΒ§
- already_
redacted π - The redacted form of an event whose content the redaction already removed.
- recorded_
event_ πid - recorded_
redaction π - redact_
keeping_ πthread - Redacts an event, keeping the unsigned fields private to its sender and, when asked, its thread summary.
- redacted_
because π - The redaction as recorded on the event it redacts, without its own
unsigned. - restorable π
- Whether a stored event in the room is of a type a redaction can apply to.
- unsigned_
mut π