Compare commits

...

3 commits

Author SHA1 Message Date
Johannes Marbach d060142a8d Line-wrap first paragraph, update link and parameters 2025-03-20 10:36:27 +01:00
Johannes Marbach 43f8f68402 Don't use semantically different texts for different mimetypes in the topic example 2025-03-20 10:29:26 +01:00
Johannes Marbach 9ca647f5ee
Update data/api/client-server/create_room.yaml
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2025-03-20 10:20:06 +01:00
3 changed files with 10 additions and 5 deletions

View file

@ -6,11 +6,11 @@
"m.topic": { "m.topic": {
"m.text": [ { "m.text": [ {
"mimetype": "text/html", "mimetype": "text/html",
"body": "An <em>html</em> topic" "body": "An <em>interesting</em> room topic"
}, { }, {
"body": "A plain text topic" "body": "An interesting room topic"
}] }]
}, },
"topic": "A plain text topic" "topic": "An interesting room topic"
} }
} }

View file

@ -2,7 +2,12 @@
allOf: allOf:
- $ref: core-event-schema/state_event.yaml - $ref: core-event-schema/state_event.yaml
description: |- 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. 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 be set when creating a room using
[`/createRoom`](client-server-api/#post_matrixclientv3createroom), either
with the `topic` key or by specifying a full event in `initial_state`.
In order to prevent formatting abuse in room topics, clients SHOULD In order to prevent formatting abuse in room topics, clients SHOULD
limit the length of topics during both entry and display, for instance, limit the length of topics during both entry and display, for instance,