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

@ -3,6 +3,7 @@
"avatar_url": "mxc://localhost:wefuiwegh8742w",
"last_active_ago": 2478593,
"presence": "online",
"currently_active": false,
"user_id": "@example:localhost"
},
"event_id": "$WLGTSEFSEF:localhost",

View file

@ -24,7 +24,11 @@
"presence": {
"type": "string",
"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": {
"type": "string",