fn redact_keeping_thread(
pdu: CanonicalJsonObject,
keep_thread: bool,
rules: &RedactionRules,
because: RedactedBecause,
) -> Result<CanonicalJsonObject>Expand description
Redacts an event, keeping the unsigned fields private to its sender and, when asked, its thread summary.
The redaction rewrites unsigned wholesale. The private fields still go to
the sender alone, since every serving path strips them for anyone else.