mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-23 15:53:43 +01:00
As per [MSC1452](https://github.com/matrix-org/matrix-doc/issues/1452) Fixes https://github.com/matrix-org/matrix-doc/issues/1254 Although MSC1452 focuses on just the warnings part of the server notices, the base for notices has not been established in the spec. This commit adds the needed support to be able to handle notices. No intentional divergences from the proposal are included in this changeset. There are a few additions which are used in practice although not defined in the proposal, such as who is responsible for aesthetics, sending notices, and other misc rules.
12 lines
340 B
Plaintext
12 lines
340 B
Plaintext
{
|
|
"$ref": "core/room_event.json",
|
|
"type": "m.room.message",
|
|
"content": {
|
|
"body": "Human-readable message to explain the notice",
|
|
"msgtype": "m.server_notice",
|
|
"server_notice_type": "m.server_notice.usage_limit_reached",
|
|
"admin_contact": "mailto:server.admin@example.org",
|
|
"limit_type": "monthly_active_user"
|
|
}
|
|
}
|