From 241096dc811cbbaa544d4a4aac73acdeb548aca4 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 8 Oct 2015 17:25:38 +0100 Subject: [PATCH 1/2] Add a flag to initial sync to indicate we want rooms that the user has left --- api/client-server/v1/sync.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/client-server/v1/sync.yaml b/api/client-server/v1/sync.yaml index 8fe30056d9d..de8dfec97f5 100644 --- a/api/client-server/v1/sync.yaml +++ b/api/client-server/v1/sync.yaml @@ -39,6 +39,16 @@ paths: description: The maximum time in milliseconds to wait for an event. required: false x-example: "35000" + - in: query + type: string + name: archived + description: |- + Whether to include rooms that the user has left. If absent then + only rooms that the user has been invited to or has joined are + included. If set to "1" then rooms that the user has left are + included as well. + required: false + x-example: "1" responses: 200: description: "The events received, which may be none." From d42c3195e6f709b0d27e42367b7e0635f00f626f Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 8 Oct 2015 18:06:52 +0100 Subject: [PATCH 2/2] Use 'true' rather than '1' for archived flag --- api/client-server/v1/sync.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/client-server/v1/sync.yaml b/api/client-server/v1/sync.yaml index de8dfec97f5..7c1d43f3e9c 100644 --- a/api/client-server/v1/sync.yaml +++ b/api/client-server/v1/sync.yaml @@ -45,10 +45,10 @@ paths: description: |- Whether to include rooms that the user has left. If absent then only rooms that the user has been invited to or has joined are - included. If set to "1" then rooms that the user has left are + included. If set to "true" then rooms that the user has left are included as well. required: false - x-example: "1" + x-example: "true" responses: 200: description: "The events received, which may be none."