-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify that /context always returns 'event' even if limit is zero #1239
Conversation
Signed-off-by: Sumner Evans <me@sumnerevans.com>
Signed-off-by: Sumner Evans <me@sumnerevans.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally seems sane to me - thanks!
@@ -57,7 +57,10 @@ paths: | |||
type: integer | |||
name: limit | |||
description: |- | |||
The maximum number of events to return. Default: 10. | |||
The maximum number of context events to return. The limit applies | |||
to the sum of the `events_before` and `events_after` arrays. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there something to prove that this is true? It's generally sensible, though we do need evidence that this PR is a bug fix rather than a change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's what synapse does: https://github.com/matrix-org/synapse/blob/v1.72.0/synapse/handlers/room.py#L1365-L1366
Let's just get this shipped.
Co-authored-by: Travis Ralston <travpc@gmail.com>
…atrix-org#1239) Signed-off-by: Sumner Evans <me@sumnerevans.com>
Signed-off-by: Sumner Evans me@sumnerevans.com
name: Clarify that /context always returns 'event' even if limit is zero
about: The spec is not clear that the limit does not apply to the event itself.
title: ''
labels: ''
assignees: ''
Pull Request Checklist
Preview: https://pr1239--matrix-spec-previews.netlify.app