Compare commits

...

4 commits

Author SHA1 Message Date
Johannes Marbach 9c6ff84170
Merge d060142a8d into e283c35dbd 2025-03-20 09:36:34 +00:00
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

@ -117,7 +117,7 @@ paths:
type: string
description: |-
If this is included, an [`m.room.topic`](#mroomtopic) event
with a `text/plain` mimetype will be sent into the room to
with a `text/plain` mimetype will be sent into the room to
indicate the topic for the room. This overwrites any
[`m.room.topic`](#mroomtopic) event in `initial_state`.
invite:

View file

@ -6,11 +6,11 @@
"m.topic": {
"m.text": [ {
"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:
- $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.
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
limit the length of topics during both entry and display, for instance,