mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Move the check for backfilled outside the for loop
This commit is contained in:
parent
76503f95ed
commit
5d06929169
@ -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 shouldn't
|
# Backfilled events come before the current state so we don't need
|
||||||
# clobber it.
|
# to update the current state table
|
||||||
continue
|
return
|
||||||
|
|
||||||
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user