Skip to content

Commit a71757f

Browse files
authored
Merge pull request #2174 from matrix-org/rav/proposals/move_redacts_key
MSC2174: Move the `redacts` key to a sane place
2 parents 136eea8 + 4503327 commit a71757f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

proposals/2174-move-redacts-key.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# MSC2174: move the `redacts` property to `content`
2+
3+
[`m.room.redaction`](https://matrix.org/docs/spec/client_server/r0.5.0#m-room-redaction)
4+
events currently have an *event-level* property `redacts` which gives the event
5+
ID of the event being redacted.
6+
7+
The presence of this field at the event level, rather than under the `content`
8+
key, is anomalous. This MSC proposes that, in a future room version, the
9+
`redacts` property be moved under the `content` key.
10+
11+
For backwards-compatibility with *older* clients, servers should add a `redacts`
12+
property to the top level of `m.room.redaction` events in *newer* room versions
13+
when serving such events over the Client-Server API.
14+
15+
For improved compatibility with *newer* clients, servers should add a `redacts`
16+
property to the `content` of `m.room.redaction` events in *older* room versions
17+
when serving such events over the Client-Server API.

0 commit comments

Comments
 (0)