From 7478e7f3cf579dd2f18eab8663dda968be9c02ce Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 30 Aug 2016 17:43:20 +0100 Subject: [PATCH] Add top-level account_data to /sync response --- api/client-server/old_sync.yaml | 9 +++++++++ api/client-server/sync.yaml | 7 +++++++ changelogs/client_server.rst | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/api/client-server/old_sync.yaml b/api/client-server/old_sync.yaml index ccd22816b..e3e1ea8a2 100644 --- a/api/client-server/old_sync.yaml +++ b/api/client-server/old_sync.yaml @@ -384,6 +384,15 @@ paths: allOf: - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" required: ["room_id", "membership"] + account_data: + type: array + description: |- + The global private data created by this user. + items: + title: Event + type: object + allOf: + - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" required: ["end", "rooms", "presence"] 404: description: There is no avatar URL for this user or this user does not exist. diff --git a/api/client-server/sync.yaml b/api/client-server/sync.yaml index f745a11e6..8bfdd48ae 100644 --- a/api/client-server/sync.yaml +++ b/api/client-server/sync.yaml @@ -229,6 +229,13 @@ paths: The updates to the presence status of other users. allOf: - $ref: "definitions/event_batch.yaml" + account_data: + title: Account Data + type: object + description: |- + The global private data created by this user. + allOf: + - $ref: "definitions/event_batch.yaml" examples: application/json: |- { diff --git a/changelogs/client_server.rst b/changelogs/client_server.rst index ac96e482b..f5cf318d6 100644 --- a/changelogs/client_server.rst +++ b/changelogs/client_server.rst @@ -30,7 +30,9 @@ ``/login`` (`#367 `_). - Make ``origin_server_ts`` a mandatory field of room events (`#379 `_). - + - Add top-level ``account_data`` key to the responses to ``GET /sync`` and + ``GET /initialSync`` + (`#380 `_). r0.2.0 ======