logo
pub fn redact_in_place(
    event: &mut CanonicalJsonObject,
    version: &RoomVersionId
) -> Result<(), Error>
Expand description

Redacts an event using the rules specified in the Matrix client-server specification.

Functionally equivalent to redact, only;

  • upon error, the event is not touched.
  • this’ll redact the event in-place.