Skip to content

Commit 9dd171a

Browse files
authored
Merge pull request #2069 from matrix-org/bwindels/messages-chunk-order
Clarify the order events in chunk are returned in for /messages
2 parents 010757c + 042455d commit 9dd171a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

api/client-server/message_pagination.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ paths:
103103
chunk:
104104
type: array
105105
description: |-
106-
A list of room events.
106+
A list of room events. The order depends on the ``dir`` parameter.
107+
For ``dir=b`` events will be in reverse-chronological order,
108+
for ``dir=f`` in chronological order, so that events start
109+
at the ``from`` point.
107110
items:
108111
type: object
109112
title: RoomEvent
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify the order events in chunk are returned in for ``/messages``.

0 commit comments

Comments
 (0)