From 78d46b289097f67adf27b35fcc14dd1fdc0ae379 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Sun, 14 Jul 2019 20:20:09 +0100 Subject: [PATCH 1/3] Proposal to move the `redacts` key to a sane place --- proposals/2174-move-redacts-key.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 proposals/2174-move-redacts-key.md diff --git a/proposals/2174-move-redacts-key.md b/proposals/2174-move-redacts-key.md new file mode 100644 index 00000000000..d93deaf5f24 --- /dev/null +++ b/proposals/2174-move-redacts-key.md @@ -0,0 +1,8 @@ +# MSC2174: move the `redacts` property to `content` + +`m.room.redaction` events currently have an *event-level* property `redacts` +which gives the event ID of the event being redacted. + +The presence of this field at the event level, rather than under the `content` +key, is anomalous. This MSC proposes that, in a future room version, the +`redacts` property be moved under the `content` key. From b09d48a9f764baf0624757e06b325c001215356a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Sun, 14 Jul 2019 20:22:39 +0100 Subject: [PATCH 2/3] Spec link --- proposals/2174-move-redacts-key.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proposals/2174-move-redacts-key.md b/proposals/2174-move-redacts-key.md index d93deaf5f24..ca3083a69cd 100644 --- a/proposals/2174-move-redacts-key.md +++ b/proposals/2174-move-redacts-key.md @@ -1,7 +1,8 @@ # MSC2174: move the `redacts` property to `content` -`m.room.redaction` events currently have an *event-level* property `redacts` -which gives the event ID of the event being redacted. +[`m.room.redaction`](https://matrix.org/docs/spec/client_server/r0.5.0#m-room-redaction) +events currently have an *event-level* property `redacts` which gives the event +ID of the event being redacted. The presence of this field at the event level, rather than under the `content` key, is anomalous. This MSC proposes that, in a future room version, the From 4503327450c1017d1266c363268ceb8c3c670f01 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 22 Jul 2019 15:17:52 +0100 Subject: [PATCH 3/3] Add some compatibility hacks. --- proposals/2174-move-redacts-key.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proposals/2174-move-redacts-key.md b/proposals/2174-move-redacts-key.md index ca3083a69cd..21212257951 100644 --- a/proposals/2174-move-redacts-key.md +++ b/proposals/2174-move-redacts-key.md @@ -7,3 +7,11 @@ ID of the event being redacted. The presence of this field at the event level, rather than under the `content` key, is anomalous. This MSC proposes that, in a future room version, the `redacts` property be moved under the `content` key. + +For backwards-compatibility with *older* clients, servers should add a `redacts` +property to the top level of `m.room.redaction` events in *newer* room versions +when serving such events over the Client-Server API. + +For improved compatibility with *newer* clients, servers should add a `redacts` +property to the `content` of `m.room.redaction` events in *older* room versions +when serving such events over the Client-Server API.