We've decided to make the event schemas YAML, so we might as well take advantage of it. (This conversion was done mostly automatically, except for: - s/null/"null"/ in m.room.member - reformat description in m.room.power_levels
22 lines
943 B
Text
22 lines
943 B
Text
---
|
|
allOf:
|
|
- $ref: core-event-schema/room_event.yaml
|
|
description: 'Events can be redacted by either room or server admins. Redacting an event means that all keys not required by the protocol are stripped off, allowing admins to remove offensive or illegal content that may have been attached to any event. This cannot be undone, allowing server owners to physically delete the offending data. There is also a concept of a moderator hiding a message event, which can be undone, but cannot be applied to state events. The event that has been redacted is specified in the ``redacts`` event level key.'
|
|
properties:
|
|
content:
|
|
properties:
|
|
reason:
|
|
description: 'The reason for the redaction, if any.'
|
|
type: string
|
|
type: object
|
|
redacts:
|
|
description: The event ID that was redacted.
|
|
type: string
|
|
type:
|
|
enum:
|
|
- m.room.redaction
|
|
type: string
|
|
required:
|
|
- redacts
|
|
title: Redaction
|
|
type: object
|