Fix inconsistencies regarding redacted_because
Signed-off-by: Benjamin Saunders <ben.e.saunders@gmail.com>
This commit is contained in:
parent
69b1827b10
commit
cade909e25
5 changed files with 16 additions and 6 deletions
|
@ -52,6 +52,10 @@ properties:
|
||||||
This key will only be present for message events sent by the device calling
|
This key will only be present for message events sent by the device calling
|
||||||
this API.
|
this API.
|
||||||
type: string
|
type: string
|
||||||
|
redacted_because:
|
||||||
|
description: Optional. The event that redacted this event, if any.
|
||||||
|
title: Event
|
||||||
|
type: object
|
||||||
title: Unsigned
|
title: Unsigned
|
||||||
type: object
|
type: object
|
||||||
title: Event
|
title: Event
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
(`#371 <https://github.com/matrix-org/matrix-doc/pull/371>`_).
|
(`#371 <https://github.com/matrix-org/matrix-doc/pull/371>`_).
|
||||||
- Correct references to ``user_id`` which should have been ``sender``
|
- Correct references to ``user_id`` which should have been ``sender``
|
||||||
(`#376 <https://github.com/matrix-org/matrix-doc/pull/376>`_).
|
(`#376 <https://github.com/matrix-org/matrix-doc/pull/376>`_).
|
||||||
|
- Correct inconsistent specification of ``redacted_because`` fields and their
|
||||||
|
values (`#378 <https://github.com/matrix-org/matrix-doc/pull/378>`_).
|
||||||
|
|
||||||
- Changes to the API which will be backwards-compatible for clients:
|
- Changes to the API which will be backwards-compatible for clients:
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
"age": 242352,
|
"unsigned": {
|
||||||
|
"age": 242352
|
||||||
|
},
|
||||||
"content": {
|
"content": {
|
||||||
"reason": "Spamming"
|
"reason": "Spamming"
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,8 +25,9 @@ properties:
|
||||||
sent
|
sent
|
||||||
type: integer
|
type: integer
|
||||||
redacted_because:
|
redacted_because:
|
||||||
description: The reason this event was redacted, if it was redacted
|
description: Optional. The event that redacted this event, if any.
|
||||||
type: string
|
title: Event
|
||||||
|
type: object
|
||||||
transaction_id:
|
transaction_id:
|
||||||
description: The client-supplied transaction ID, if the client being given
|
description: The client-supplied transaction ID, if the client being given
|
||||||
the event is the same one which sent it.
|
the event is the same one which sent it.
|
||||||
|
|
|
@ -970,9 +970,10 @@ one of the following event types:
|
||||||
``kick``, ``redact``, ``state_default``, ``users``, ``users_default``.
|
``kick``, ``redact``, ``state_default``, ``users``, ``users_default``.
|
||||||
- ``m.room.aliases`` allows key ``aliases``
|
- ``m.room.aliases`` allows key ``aliases``
|
||||||
|
|
||||||
The redaction event should be added under the key ``redacted_because``. When a
|
The server should add the event causing the redaction to the ``unsigned``
|
||||||
client receives a redaction event it should change the redacted event
|
property of the redacted event, under the ``redacted_because`` key. When a
|
||||||
in the same way a server does.
|
client receives a redaction event it should change the redacted event in the
|
||||||
|
same way a server does.
|
||||||
|
|
||||||
Events
|
Events
|
||||||
++++++
|
++++++
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue