mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
Force limited=true
This commit is contained in:
parent
f17ff7cf0b
commit
9c2354b2b1
1 changed files with 6 additions and 0 deletions
|
@ -1595,6 +1595,12 @@ class SlidingSyncHandler:
|
|||
stream=timeline_events[0].internal_metadata.stream_ordering - 1
|
||||
)
|
||||
|
||||
if ignore_timeline_bound:
|
||||
# If we're ignoring the timeline bound we *must* set limited to
|
||||
# true, as otherwise the client will append the received events
|
||||
# to the timeline, rather than replacing it.
|
||||
limited = True
|
||||
|
||||
# Make sure we don't expose any events that the client shouldn't see
|
||||
timeline_events = await filter_events_for_client(
|
||||
self.storage_controllers,
|
||||
|
|
Loading…
Reference in a new issue