mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03: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
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ class BulkPushRuleEvaluator:
|
|||
if len(filtered) == 0:
|
||||
continue
|
||||
|
||||
if filtered.sender == uid:
|
||||
continue
|
||||
|
||||
for rule in rules:
|
||||
if 'enabled' in rule and not rule['enabled']:
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue