Clarify that homeserver must reject clients from setting m.fully_read
This commit is contained in:
parent
2e8151999e
commit
f6d9e53f5c
2 changed files with 7 additions and 22 deletions
|
@ -67,17 +67,6 @@ paths:
|
|||
200:
|
||||
description:
|
||||
The account_data was successfully added.
|
||||
405:
|
||||
description:
|
||||
The account data event type cannot be set here. This generally indicates
|
||||
that another API is available for managing the data contained in the event.
|
||||
schema:
|
||||
$ref: "definitions/errors/error.yaml"
|
||||
examples:
|
||||
application/json: {
|
||||
"errcode": "M_UNKNOWN",
|
||||
"error": "Cannot set m.fully_read through this API. Use /rooms/{roomId}/read_markers"
|
||||
}
|
||||
tags:
|
||||
- User data
|
||||
"/user/{userId}/rooms/{roomId}/account_data/{type}":
|
||||
|
@ -127,16 +116,5 @@ paths:
|
|||
200:
|
||||
description:
|
||||
The account_data was successfully added.
|
||||
405:
|
||||
description:
|
||||
The account data event type cannot be set here. This generally indicates
|
||||
that another API is available for managing the data contained in the event.
|
||||
schema:
|
||||
$ref: "definitions/errors/error.yaml"
|
||||
examples:
|
||||
application/json: {
|
||||
"errcode": "M_UNKNOWN",
|
||||
"error": "Cannot set m.fully_read through this API. Use /rooms/{roomId}/read_markers"
|
||||
}
|
||||
tags:
|
||||
- User data
|
||||
|
|
|
@ -39,3 +39,10 @@ Client Behaviour
|
|||
----------------
|
||||
|
||||
{{account_data_cs_http_api}}
|
||||
|
||||
|
||||
Server Behaviour
|
||||
----------------
|
||||
|
||||
Servers MUST reject clients from setting account data for event types that
|
||||
the server manages. Currently, this only includes `m.fully_read`_.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue