You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
10 years ago
|
{
|
||
|
"type": "object",
|
||
10 years ago
|
"title": "Redaction",
|
||
10 years ago
|
"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.",
|
||
10 years ago
|
"allOf": [{
|
||
9 years ago
|
"$ref": "core-event-schema/room_event.json"
|
||
10 years ago
|
}],
|
||
|
"properties": {
|
||
|
"content": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"reason": {
|
||
10 years ago
|
"type": "string",
|
||
|
"description": "The reason for the redaction, if any."
|
||
10 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"redacts": {
|
||
10 years ago
|
"type": "string",
|
||
|
"description": "The event ID that was redacted."
|
||
10 years ago
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.room.redaction"]
|
||
|
}
|
||
|
},
|
||
|
"required": ["redacts"]
|
||
|
}
|