mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
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:
parent
17448083cf
commit
6fb26697e8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue