mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-02 07:04:09 +02:00
Compare commits
4 commits
f0de9803d9
...
9c6ff84170
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c6ff84170 | ||
|
|
d060142a8d | ||
|
|
43f8f68402 | ||
|
|
9ca647f5ee |
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue