From c83940750ce178e9ac5a3b5c9b075f3f95fba33a Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 29 Jun 2016 10:40:39 +0100 Subject: [PATCH] Update m.presence --- event-schemas/examples/m.presence | 1 + event-schemas/schema/m.presence | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/event-schemas/examples/m.presence b/event-schemas/examples/m.presence index 695bd99b..ead92ccd 100644 --- a/event-schemas/examples/m.presence +++ b/event-schemas/examples/m.presence @@ -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", diff --git a/event-schemas/schema/m.presence b/event-schemas/schema/m.presence index 79852ac6..bc0f9078 100644 --- a/event-schemas/schema/m.presence +++ b/event-schemas/schema/m.presence @@ -21,7 +21,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",