mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 12:02:12 +00:00
Merge pull request #511 from matrix-org/dbkr/no_push_for_own_events
Don't generate push actions for our own events
This commit is contained in:
commit
d4cefb6289
@ -107,6 +107,9 @@ class BulkPushRuleEvaluator:
|
|||||||
if len(filtered) == 0:
|
if len(filtered) == 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if filtered.sender == uid:
|
||||||
|
continue
|
||||||
|
|
||||||
for rule in rules:
|
for rule in rules:
|
||||||
if 'enabled' in rule and not rule['enabled']:
|
if 'enabled' in rule and not rule['enabled']:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user