Skip to content

Commit 1d61862

Browse files
Sliding Sync: Fix limited response description (make accurate) (#17507)
1 parent 46de0ee commit 1d61862

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/17507.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update the `limited` field description in the Sliding Sync response to accurately describe what it actually represents.

synapse/types/handlers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ class RoomResult:
182182
absent on joined/left rooms
183183
prev_batch: A token that can be passed as a start parameter to the
184184
`/rooms/<room_id>/messages` API to retrieve earlier messages.
185-
limited: True if their are more events than fit between the given position and now.
186-
Sync again to get more.
185+
limited: True if there are more events than `timeline_limit` looking
186+
backwards from the `response.pos` to the `request.pos`.
187187
num_live: The number of timeline events which have just occurred and are not historical.
188188
The last N events are 'live' and should be treated as such. This is mostly
189189
useful to determine whether a given @mention event should make a noise or not.

0 commit comments

Comments
 (0)