Make m.presence match what synapse returns

Considering this is the behaviour that is embedded into most client libraries and the most popular homeserver, it should be adopted as the standard.

Signed-off-by: Travis Ralston <travpc@gmail.com>
pull/977/head
Travis Ralston 7 years ago
parent 3dfa643b8b
commit a488bd5503

@ -4,8 +4,7 @@
"last_active_ago": 2478593, "last_active_ago": 2478593,
"presence": "online", "presence": "online",
"currently_active": false, "currently_active": false,
"user_id": "@example:localhost"
}, },
"event_id": "$WLGTSEFSEF:localhost", "sender": "@example:localhost",
"type": "m.presence" "type": "m.presence"
} }

@ -29,21 +29,17 @@
"currently_active": { "currently_active": {
"type": boolean, "type": boolean,
"description": "Whether the user is currently active" "description": "Whether the user is currently active"
},
"user_id": {
"type": "string",
"description": "The user's ID."
} }
}, },
"required": ["presence", "user_id"] "required": ["presence"]
}, },
"type": { "type": {
"type": "string", "type": "string",
"enum": ["m.presence"] "enum": ["m.presence"]
}, },
"event_id": { "sender": {
"type": "string" "type": "string"
} }
}, },
"required": ["event_id", "type", "content"] "required": ["sender", "type", "content"]
} }

Loading…
Cancel
Save