actually exclude outliers

This commit is contained in:
Richard van der Hoff 2018-10-03 10:19:41 +01:00
parent 2a4ea3baa8
commit 9693625e55
1 changed files with 2 additions and 1 deletions

View File

@ -560,7 +560,7 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore
@defer.inlineCallbacks
def _get_events_which_are_prevs(self, event_ids):
"""Filter the supplied list of event_ids to get those which are prev_events of
existing (non-outlier) events.
existing (non-outlier/rejected) events.
Args:
event_ids (Iterable[str]): event ids to filter
@ -578,6 +578,7 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore
LEFT JOIN rejections USING (event_id)
WHERE
prev_event_id IN (%s)
AND NOT events.outlier
AND rejections.event_id IS NULL
""" % (
",".join("?" for _ in batch),