Skip to content
Snippets Groups Projects
Commit c54d8df5 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Update API docs to use 'presence' key not 'state'. Fixed error messages when setting presence.

parent acfabfff
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@
"PresenceUpdate": {
"id": "PresenceUpdate",
"properties": {
"state": {
"presence": {
"type": "string",
"description": "Enum: The presence state.",
"enum": [
......
......@@ -207,7 +207,7 @@ class PresenceHandler(BaseHandler):
raise SynapseError(400, "User is not hosted on this Home Server")
if target_user != auth_user:
raise AuthError(400, "Cannot set another user's displayname")
raise AuthError(400, "Cannot set another user's presence")
if "status_msg" not in state:
state["status_msg"] = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment