Skip to content

Commit

Permalink
Fixups to #17064
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Apr 8, 2024
1 parent 1f8f991 commit 0b46a71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,11 @@ async def _compute_state_delta_for_incremental_sync(
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] = {}
Expand Down

0 comments on commit 0b46a71

Please sign in to comment.