Merge pull request #342 from matrix-org/erikj/presence

Fix and correctly document presence's currently_active
This commit is contained in:
Richard van der Hoff 2016-06-29 11:36:55 +01:00 committed by GitHub
commit 4f37e4ece0
3 changed files with 10 additions and 4 deletions

View file

@ -50,9 +50,6 @@ paths:
status_msg:
type: string
description: "The status message to attach to this state."
currently_active:
type: boolean
description: "Whether the user is currently active"
required: ["presence"]
responses:
200:
@ -103,6 +100,10 @@ paths:
status_msg:
type: [string, "null"]
description: The state message for this user if one was set.
currently_active:
type: boolean
description: "Whether the user is currently active"
required: ["presence"]
404:
description: |-
There is no presence state for this user. This user may not exist or