Skip to content

Commit

Permalink
Marking from parameter as optional
Browse files Browse the repository at this point in the history
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`

matrix-org/matrix-spec-proposals#3567
  • Loading branch information
germain-gg authored and jplatte committed Mar 25, 2022
1 parent 1744808 commit 6fb2669
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data/api/client-server/message_pagination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ paths:
This endpoint can also accept a value returned as a `start` token
by a previous request to this endpoint, though servers are not
required to support this. Clients should not rely on the behaviour.
required: true
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
x-example: "s345_678_333"
- in: query
type: string
Expand Down

0 comments on commit 6fb2669

Please sign in to comment.