Skip to content
Snippets Groups Projects
Commit 5d069291 authored by Mark Haines's avatar Mark Haines
Browse files

Move the check for backfilled outside the for loop

parent 76503f95
No related branches found
No related tags found
No related merge requests found
...@@ -485,12 +485,12 @@ class EventsStore(SQLBaseStore): ...@@ -485,12 +485,12 @@ class EventsStore(SQLBaseStore):
], ],
) )
for event, _ in state_events_and_contexts: if backfilled:
if backfilled: # Backfilled events come before the current state so we don't need
# Backfilled events come before the current state so shouldn't # to update the current state table
# clobber it. return
continue
for event, _ in state_events_and_contexts:
if (not event.internal_metadata.is_invite_from_remote() if (not event.internal_metadata.is_invite_from_remote()
and event.internal_metadata.is_outlier()): and event.internal_metadata.is_outlier()):
# Outlier events generally shouldn't clobber the current state. # Outlier events generally shouldn't clobber the current state.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment