mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
m.read_marker -> m.fully_read (#2128)
Also: - change the REST endpoint to have a "S" on the end (so it's now /read_markers) - change the content of the m.read_up_to event to have the key "event_id" instead of "marker".
This commit is contained in:
parent
c02b6a37d6
commit
3fb8784c92
3 changed files with 9 additions and 9 deletions
|
@ -82,11 +82,11 @@ class RoomAccountDataServlet(RestServlet):
|
|||
|
||||
body = parse_json_object_from_request(request)
|
||||
|
||||
if account_data_type == "m.read_marker":
|
||||
if account_data_type == "m.fully_read":
|
||||
raise SynapseError(
|
||||
405,
|
||||
"Cannot set m.read_marker through this API."
|
||||
" Use /rooms/!roomId:server.name/read_marker"
|
||||
"Cannot set m.fully_read through this API."
|
||||
" Use /rooms/!roomId:server.name/read_markers"
|
||||
)
|
||||
|
||||
max_id = yield self.store.add_account_data_to_room(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue