Skip to main content

Module redactions

Module redactions 

Source
Expand description

Redactions a foreign database applied without recording them.

Some origin releases keep only a reference to a redaction on the event it redacted, both when redacting and in a rewrite of every stored row. On this server such an event reads as unredacted while its content is already gone.

Re-exportsΒ§

use std::fmt; πŸ”’
use futures::Stream; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use futures::stream::once; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::OwnedRoomId; πŸ”’
use ruma::RoomVersionId; πŸ”’
use ruma::events::TimelineEventType; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::result::NotFound; πŸ”’
use tuwunel_core::utils::TryReadyExt; πŸ”’
use tuwunel_core::utils::stream::TryBroadbandExt; πŸ”’
use tuwunel_database::KeyBuf; πŸ”’
use tuwunel_matrix::event::Event; πŸ”’
use tuwunel_matrix::pdu::PduEvent; πŸ”’
use tuwunel_matrix::room_version::rules as room_rules; πŸ”’
use super::Check; πŸ”’
use super::Report; πŸ”’
use super::ScanExt; πŸ”’
use super::per_room; πŸ”’
use super::tally; πŸ”’
use crate::Services; πŸ”’
use crate::migrations::marker_present; πŸ”’
use crate::rooms::timeline::Mapped; πŸ”’
use crate::rooms::timeline::Restoration; πŸ”’

StructsΒ§

Kind πŸ”’
The event type of a stored row, read without the rest of the event.
Unparsable πŸ”’
A timeline row typed a redaction that does not parse as an event.

EnumsΒ§

Finding
A redaction its target does not record although the target’s content is gone.

ConstantsΒ§

ORIGIN_COLUMN πŸ”’
ORIGIN_MARKER πŸ”’

StaticsΒ§

CHECK πŸ”’

FunctionsΒ§

classify πŸ”’
records_by_reference πŸ”’
Whether the origin ever opened the database with a release that records redactions by reference.
redaction πŸ”’
The redaction event a timeline row holds.
redactions πŸ”’
Streams every redaction event the timeline stores.
scan
Streams each redaction recording would apply to its target, and each one this check cannot decide.
version πŸ”’

Type AliasesΒ§

Redaction πŸ”’
A redaction event the timeline stores, or a row typed a redaction that does not parse as one.
Version πŸ”’