matrix-spec/data/event-schemas/schema/m.room.redaction.yaml
2023-07-26 10:44:53 -04:00

26 lines
922 B
YAML

---
allOf:
- $ref: core-event-schema/room_event.yaml
description: 'This event is created by the server to describe which event has been redacted, by whom, and optionally why. The event that has been redacted is specified in the `redacts` event level key. Redacting an event means that all keys not required by the protocol are stripped off, allowing messages to be hidden or allowing admins to remove offensive or illegal content.'
properties:
content:
properties:
redacts: |-
description: The event ID that was redacted. Starting in room version 11.
type: string
reason:
description: 'The reason for the redaction, if any.'
type: string
type: object
redacts:
description: The event ID that was redacted. For room versions 1 - 10.
type: string
type:
enum:
- m.room.redaction
type: string
required:
- redacts
title: Redaction
type: object