From a2f18d96ab52bd5d590c5e47fd589e1cac8350f1 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 25 Mar 2022 12:21:16 +0100 Subject: [PATCH] Add note to x-changedInMatrixVersion --- data/api/client-server/message_pagination.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/api/client-server/message_pagination.yaml b/data/api/client-server/message_pagination.yaml index 99d156a6..cc4d72b4 100644 --- a/data/api/client-server/message_pagination.yaml +++ b/data/api/client-server/message_pagination.yaml @@ -49,7 +49,10 @@ paths: - in: query type: string name: from - x-changedInMatrixVersion: "1.3" + x-changedInMatrixVersion: + 1.3: | + Previously, this field was required and paginating from the first or + last visible event in the room history wasn't supported. description: |- The token to start returning events from. This token can be obtained from a `prev_batch` or `next_batch` token returned by the `/sync` endpoint, @@ -59,7 +62,7 @@ paths: by a previous request to this endpoint, though servers are not required to support this. Clients should not rely on the behaviour. - If it is not provided, the homeserver shall return a list of messages + If it is not provided, the homeserver shall return a list of messages from the first or last (per the value of the `dir` parameter) visible event in the room history for the requesting user. required: false