From a78dff39811df0d0866954c35b5a37f37128e51e Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 1 Mar 2016 11:40:52 +0000 Subject: [PATCH] Add notification counts to doc --- api/client-server/sync.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/client-server/sync.yaml b/api/client-server/sync.yaml index c6889830..ed5addda 100644 --- a/api/client-server/sync.yaml +++ b/api/client-server/sync.yaml @@ -146,6 +146,22 @@ paths: this room. allOf: - $ref: "definitions/event_batch.yaml" + "unread_notifications": + title: Unread Notification Counts + type: object + description: |- + Counts of unread notifications for this room + properties: + highlight_count: + title: Highlighted notification count + type: integer + description: The number of unread notifications + for this room with the highlight flag set + notification_count: + title: Total notification count + type: integer + description: The total number of unread notifications + for this room invite: title: Invited Rooms type: object