From 044a78730eac66a2b55ed1cf09dd32da80727b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:39:07 +0200 Subject: [PATCH] Clarify that an `m.room.name` event with an absent `name` field is not expected behavior (#1639) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1632 Signed-off-by: Kévin Commaille --- changelogs/client_server/newsfragments/1639.clarification | 1 + data/event-schemas/schema/m.room.name.yaml | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changelogs/client_server/newsfragments/1639.clarification diff --git a/changelogs/client_server/newsfragments/1639.clarification b/changelogs/client_server/newsfragments/1639.clarification new file mode 100644 index 00000000..781cc2ca --- /dev/null +++ b/changelogs/client_server/newsfragments/1639.clarification @@ -0,0 +1 @@ +Clarify that an `m.room.name` event with an absent `name` field is not expected behavior. \ No newline at end of file diff --git a/data/event-schemas/schema/m.room.name.yaml b/data/event-schemas/schema/m.room.name.yaml index c9236de0..0b3b34dc 100644 --- a/data/event-schemas/schema/m.room.name.yaml +++ b/data/event-schemas/schema/m.room.name.yaml @@ -7,9 +7,8 @@ description: |- is a human-friendly string designed to be displayed to the end-user. The room name is not unique, as multiple rooms can have the same room name set. - A room with an `m.room.name` event with an absent, null, or empty - `name` field should be treated the same as a room with no `m.room.name` - event. + If a room has an `m.room.name` event with an absent, null, or empty `name` + field, it should be treated the same as a room with no `m.room.name` event. An event of this type is automatically created when creating a room using `/createRoom` with the `name` key.