Skip to content

Commit dabbdba

Browse files
committed
Marking from parameter as optional
As per MSC3567, the `from` parameter is now optional for the `/messages` endpoint to allow fetching first or latest room content without having to rely on `/sync` #3567
1 parent 6fb6843 commit dabbdba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

data/api/client-server/message_pagination.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ paths:
5757
This endpoint can also accept a value returned as a `start` token
5858
by a previous request to this endpoint, though servers are not
5959
required to support this. Clients should not rely on the behaviour.
60-
required: true
60+
61+
If it is not provided, the homeserver shall return a list of messages
62+
from the first or last (per the value of the `dir` parameter) visible
63+
event in the room history for the requesting user.
64+
required: false
6165
x-example: "s345_678_333"
6266
- in: query
6367
type: string

0 commit comments

Comments
 (0)