Merge pull request #342 from matrix-org/erikj/presence
Fix and correctly document presence's currently_active
This commit is contained in:
commit
4f37e4ece0
3 changed files with 10 additions and 4 deletions
|
@ -50,9 +50,6 @@ paths:
|
||||||
status_msg:
|
status_msg:
|
||||||
type: string
|
type: string
|
||||||
description: "The status message to attach to this state."
|
description: "The status message to attach to this state."
|
||||||
currently_active:
|
|
||||||
type: boolean
|
|
||||||
description: "Whether the user is currently active"
|
|
||||||
required: ["presence"]
|
required: ["presence"]
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
@ -103,6 +100,10 @@ paths:
|
||||||
status_msg:
|
status_msg:
|
||||||
type: [string, "null"]
|
type: [string, "null"]
|
||||||
description: The state message for this user if one was set.
|
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:
|
404:
|
||||||
description: |-
|
description: |-
|
||||||
There is no presence state for this user. This user may not exist or
|
There is no presence state for this user. This user may not exist or
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"avatar_url": "mxc://localhost:wefuiwegh8742w",
|
"avatar_url": "mxc://localhost:wefuiwegh8742w",
|
||||||
"last_active_ago": 2478593,
|
"last_active_ago": 2478593,
|
||||||
"presence": "online",
|
"presence": "online",
|
||||||
|
"currently_active": false,
|
||||||
"user_id": "@example:localhost"
|
"user_id": "@example:localhost"
|
||||||
},
|
},
|
||||||
"event_id": "$WLGTSEFSEF:localhost",
|
"event_id": "$WLGTSEFSEF:localhost",
|
||||||
|
|
|
@ -24,7 +24,11 @@
|
||||||
"presence": {
|
"presence": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The presence state for this user.",
|
"description": "The presence state for this user.",
|
||||||
"enum": ["online", "offline", "unavailable", "free_for_chat", "hidden"]
|
"enum": ["online", "offline", "unavailable"]
|
||||||
|
},
|
||||||
|
"currently_active": {
|
||||||
|
"type": boolean,
|
||||||
|
"description": "Whether the user is currently active"
|
||||||
},
|
},
|
||||||
"user_id": {
|
"user_id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue