mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Clean-up examples and language.
This commit is contained in:
parent
e2310edfb0
commit
b0b6a89ded
|
|
@ -3,8 +3,7 @@
|
||||||
"type": "m.room.create",
|
"type": "m.room.create",
|
||||||
"state_key": "",
|
"state_key": "",
|
||||||
"content": {
|
"content": {
|
||||||
"creator": "@example:example.org",
|
"room_version": "11",
|
||||||
"room_version": "1",
|
|
||||||
"m.federate": true,
|
"m.federate": true,
|
||||||
"predecessor": {
|
"predecessor": {
|
||||||
"event_id": "$something:example.org",
|
"event_id": "$something:example.org",
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"$ref": "core/room_event.json",
|
"$ref": "core/room_event.json",
|
||||||
"type": "m.room.redaction",
|
"type": "m.room.redaction",
|
||||||
"redacts": "$fukweghifu23:localhost",
|
|
||||||
"content": {
|
"content": {
|
||||||
|
"redacts": "$fukweghifu23:localhost",
|
||||||
"reason": "Spamming"
|
"reason": "Spamming"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,6 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
description: The event ID of the last known event in the old room.
|
description: The event ID of the last known event in the old room.
|
||||||
required: [room_id, event_id]
|
required: [room_id, event_id]
|
||||||
required:
|
|
||||||
- creator
|
|
||||||
type: object
|
type: object
|
||||||
state_key:
|
state_key:
|
||||||
description: A zero-length string.
|
description: A zero-length string.
|
||||||
|
|
|
||||||
|
|
@ -6,20 +6,18 @@ properties:
|
||||||
content:
|
content:
|
||||||
properties:
|
properties:
|
||||||
redacts:
|
redacts:
|
||||||
description: The event ID that was redacted. Present starting in room version 11.
|
description: The event ID that was redacted. Required for, and present starting in, room version 11.
|
||||||
type: string
|
type: string
|
||||||
reason:
|
reason:
|
||||||
description: 'The reason for the redaction, if any.'
|
description: 'The reason for the redaction, if any.'
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
redacts:
|
redacts:
|
||||||
description: Only present in room versions 1 - 10. The event ID that was redacted.
|
description: Required for, and only present in, room versions 1 - 10. The event ID that was redacted.
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
- m.room.redaction
|
- m.room.redaction
|
||||||
type: string
|
type: string
|
||||||
required:
|
|
||||||
- redacts
|
|
||||||
title: Redaction
|
title: Redaction
|
||||||
type: object
|
type: object
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue