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`

https://github.com/matrix-org/matrix-doc/pull/3567
This commit is contained in:
Germain Souquet 2022-01-12 09:53:13 +00:00 committed by Jonas Platte
parent 17448083cf
commit 6fb26697e8
No known key found for this signature in database
GPG key ID: BBA95679259D342F

View file

@ -57,7 +57,11 @@ paths:
This endpoint can also accept a value returned as a `start` token This endpoint can also accept a value returned as a `start` token
by a previous request to this endpoint, though servers are not by a previous request to this endpoint, though servers are not
required to support this. Clients should not rely on the behaviour. 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" x-example: "s345_678_333"
- in: query - in: query
type: string type: string