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

This commit is contained in:
Kegan Dougal 2014-09-03 11:45:30 +01:00
parent acfabfff9c
commit c54d8df504
2 changed files with 2 additions and 2 deletions

View file

@ -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