Add server notices support
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.
This commit is contained in:
parent
5c268ef21f
commit
5eea4a477f
9 changed files with 154 additions and 5 deletions
|
@ -219,9 +219,12 @@ Other error codes the client might encounter are:
|
|||
to modify state (eg: sending messages, account data, etc) and not routes which only
|
||||
read state (eg: ``/sync``, get account data, etc).
|
||||
|
||||
:``M_CANNOT_LEAVE_SERVER_NOTICE_ROOM``:
|
||||
The user is unable to reject an invite to join the server notices room. See the
|
||||
`Server Notices <#server-notices>`_ module for more information.
|
||||
|
||||
.. TODO: More error codes (covered by other issues)
|
||||
.. * M_CONSENT_NOT_GIVEN - GDPR: https://github.com/matrix-org/matrix-doc/issues/1512
|
||||
.. * M_CANNOT_LEAVE_SERVER_NOTICE_ROOM - GDPR: https://github.com/matrix-org/matrix-doc/issues/1254
|
||||
|
||||
.. _sect:txn_ids:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue