Skip to content

Commit 0b46a71

Browse files
committed
Fixups to #17064
1 parent 1f8f991 commit 0b46a71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/sync.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,11 @@ async def _compute_state_delta_for_incremental_sync(
12721272
for e in batch.events[1:]:
12731273
if e.prev_event_ids() != [prev_event_id]:
12741274
break
1275+
prev_event_id = e.event_id
12751276
else:
12761277
is_linear_timeline = True
1278+
else:
1279+
is_linear_timeline = True
12771280

12781281
if is_linear_timeline and not batch.limited:
12791282
state_ids: StateMap[str] = {}

0 commit comments

Comments
 (0)