Skip to content

fix(TestRoomForget): Missing direction in /messages call - #943

Merged
devonh merged 1 commit into
matrix-org:mainfrom
RasmusRendal:RasmusRendal/messages_dir
Oct 30, 2026
Merged

devonh merged 1 commit into
matrix-org:mainfrom
RasmusRendal:RasmusRendal/messages_dir

Conversation

@RasmusRendal

Copy link
Copy Markdown
Contributor

In the client-server API spec, the GET /_matrix/client/v3/rooms/{roomId}/messages endpoint has the query parameter dir marked as required.

See https://spec.matrix.org/v1.19/client-server-api/#get_matrixclientv3roomsroomidmessages

But in this Complement test it was not supplied, causing the test to fail on the Arminius homeserver because of the invalid request.

Here I just supply the direction b, because for the test the direction shouldn't actually matter.

Extra note, a quick rg '"messages"' doesn't return any other calls with a missing dir.

Pull Request Checklist

In the client-server API spec, the `GET
/_matrix/client/v3/rooms/{roomId}/messages` endpoint has the query parameter
`dir` marked as required.

See https://spec.matrix.org/v1.19/client-server-api/#get_matrixclientv3roomsroomidmessages

But in this Complement test it was not supplied, causing the test to fail
on the Arminius homeserver because of the invalid request.

Here I just supply the direction `b`, because for the test the direction
shouldn't actually matter.

Signed-off-by: Rasmus Rendal <r.kjaer@famedly.com>
@RasmusRendal
RasmusRendal requested review from a team as code owners October 29, 2026 14:43
@RasmusRendal
RasmusRendal requested review from devonh and removed request for a team October 29, 2026 14:43
@devonh
devonh merged commit e3fcff1 into matrix-org:main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants