Force limited=true

This commit is contained in:
Erik Johnston 2024-07-30 18:40:02 +01:00
parent f17ff7cf0b
commit 9c2354b2b1

View file

@ -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,