Compare commits

..

No commits in common. "d060142a8df05bae77786e61c7f9bde76b0e5e19" and "743a035335e7ed6e1ed431a4d42be5559b9fa328" have entirely different histories.

3 changed files with 5 additions and 10 deletions

View file

@ -117,7 +117,7 @@ paths:
type: string type: string
description: |- description: |-
If this is included, an [`m.room.topic`](#mroomtopic) event 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 indicate the topic for the room. This overwrites any
[`m.room.topic`](#mroomtopic) event in `initial_state`. [`m.room.topic`](#mroomtopic) event in `initial_state`.
invite: invite:

View file

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

View file

@ -2,12 +2,7 @@
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 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.
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,