Update m.presence

This commit is contained in:
Erik Johnston 2016-06-29 10:40:39 +01:00
parent 0de8ba7f0a
commit c83940750c
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -21,7 +21,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",