Merge pull request #1744 from matrix-org/travis/m.presence

Add missing status_msg to m.presence schema and example
This commit is contained in:
Travis Ralston 2018-12-18 09:41:07 -07:00 committed by GitHub
commit f767227e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1 @@
Add missing status_msg to m.presence schema

View file

@ -6,6 +6,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 "currently_active": false,
"status_msg": "Making cupcakes"
} }
} }

View file

@ -29,6 +29,10 @@
"currently_active": { "currently_active": {
"type": boolean, "type": boolean,
"description": "Whether the user is currently active" "description": "Whether the user is currently active"
},
"status_msg": {
"type": "string",
"description": "An optional description to accompany the presence."
} }
}, },
"required": ["presence"] "required": ["presence"]