Remove rejected events if we don't want rejected events

This commit is contained in:
Erik Johnston 2015-05-18 14:03:46 +01:00
parent 131bdf9bb1
commit 4d1b6f4ad1

View File

@ -643,6 +643,9 @@ class EventsStore(SQLBaseStore):
events,
)
if not allow_rejected:
rows[:] = [r for r in rows if not r["rejects"]]
res = yield defer.gatherResults(
[
defer.maybeDeferred(