Skip to content

Note how to paginate using token returned by /context#2372

Merged
anoadragon453 merged 3 commits into
mainfrom
anoa/mention_messages
May 6, 2026
Merged

Note how to paginate using token returned by /context#2372
anoadragon453 merged 3 commits into
mainfrom
anoa/mention_messages

Conversation

@anoadragon453

@anoadragon453 anoadragon453 commented May 1, 2026

Copy link
Copy Markdown
Member

It is unclear without deep familiarity of the spec for how to actually paginate messages given the tokens returned by /context. There's no mention of how to do so anywhere else in this endpoint.

Therefore, this PR adds a small pointer to help.

Pull Request Checklist

Signed-off-by: Andrew Morgan (andrewm@element.io)

Relevant part of the preview: https://pr2372--matrix-spec-previews.netlify.app/client-server-api/#get_matrixclientv3roomsroomidcontexteventid

Preview: https://pr2372--matrix-spec-previews.netlify.app

It is unclear without deep familiarity of the spec for how to actually
paginate messages given the tokens returned by `/context`. There's no
mention of how anywhere else in this endpoint. Thus, a small pointer can
go a long way.
@anoadragon453 anoadragon453 marked this pull request as ready for review May 1, 2026 10:29
@anoadragon453 anoadragon453 requested a review from a team as a code owner May 1, 2026 10:29
@@ -0,0 +1 @@
Clarify how to paginate messages using the pagination tokens returned by `/rooms/{roomId}/context/{eventId}`. No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is spawning from this conversation

Comment thread data/api/client-server/event_context.yaml Outdated
Comment thread data/api/client-server/event_context.yaml Outdated
Comment thread changelogs/client_server/newsfragments/2372.clarification Outdated
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
@anoadragon453

Copy link
Copy Markdown
Member Author

@zecakeh Good point, thank you!

@anoadragon453 anoadragon453 requested a review from zecakeh May 5, 2026 09:41
@anoadragon453 anoadragon453 merged commit 59b92ce into main May 6, 2026
13 checks passed
@anoadragon453 anoadragon453 deleted the anoa/mention_messages branch May 6, 2026 16:10
thetayloredman pushed a commit to thetayloredman/matrix-spec that referenced this pull request May 25, 2026
)

Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
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.

3 participants