diff options
author | Erik Johnston <erikj@element.io> | 2024-04-08 14:55:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 14:55:19 +0100 |
commit | 4d10a8fb1807b3ab742e17a562bcae377057be50 (patch) | |
tree | 683e54a7d41e72421691fef7912cec9fcbd1b40c /synapse/handlers | |
parent | Add back fast path for non-gappy syncs (#17064) (diff) | |
download | synapse-4d10a8fb1807b3ab742e17a562bcae377057be50.tar.xz |
Fixups to #17064 (#17065)
Forget a line, and an empty batch is trivially linear. c.f. #17064
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/sync.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 7c29c15540..410805e806 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1272,8 +1272,11 @@ class SyncHandler: for e in batch.events[1:]: if e.prev_event_ids() != [prev_event_id]: break + prev_event_id = e.event_id else: is_linear_timeline = True + else: + is_linear_timeline = True if is_linear_timeline and not batch.limited: state_ids: StateMap[str] = {} |