From 97dfa16844bdb9d1b867e5c0b722bba2282fd9a2 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Fri, 31 Jan 2025 11:21:05 +0000 Subject: [PATCH] Describe behaviour when the `topic` key is falsey in a m.room.topic event. We seem to have [updated this for m.room.name](https://github.com/matrix-org/matrix-spec/pull/1639) some years back but omitted it for topic. --- data/event-schemas/schema/m.room.topic.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/event-schemas/schema/m.room.topic.yaml b/data/event-schemas/schema/m.room.topic.yaml index 78a3d878..69ae3616 100644 --- a/data/event-schemas/schema/m.room.topic.yaml +++ b/data/event-schemas/schema/m.room.topic.yaml @@ -1,7 +1,14 @@ --- allOf: - $ref: core-event-schema/state_event.yaml -description: 'A topic is a short message detailing what is currently being discussed in the room. It can also be used as a way to display extra information about the room, which may not be suitable for the room name. The room topic can also be set when creating a room using `/createRoom` with the `topic` key.' +description: |- + A topic is a short message detailing what is currently being discussed in the room. + It can also be used as a way to display extra information about the room, which may not + be suitable for the room name. + The room topic can also be set when creating a room using `/createRoom` with the `topic` key.' + + If a room has an `m.room.topic` event with an absent, null, or empty `topic` + field, it should be treated the same as a room with no `m.room.topic` event. properties: content: properties: