mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-19 08:24:25 +01:00
Remove rejected events if we don't want rejected events
This commit is contained in:
parent
131bdf9bb1
commit
4d1b6f4ad1
1 changed files with 3 additions and 0 deletions
|
@ -643,6 +643,9 @@ class EventsStore(SQLBaseStore):
|
||||||
events,
|
events,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not allow_rejected:
|
||||||
|
rows[:] = [r for r in rows if not r["rejects"]]
|
||||||
|
|
||||||
res = yield defer.gatherResults(
|
res = yield defer.gatherResults(
|
||||||
[
|
[
|
||||||
defer.maybeDeferred(
|
defer.maybeDeferred(
|
||||||
|
|
Loading…
Reference in a new issue