summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-20 13:24:59 +0000
committerDavid Baker <dave@matrix.org>2016-01-20 13:24:59 +0000
commit259d1ecd1dc721b8dcda01194cc0d5a0c12a591e (patch)
tree61d88008893a0f34694673760293818204d6d973 /synapse/push
parentMerge pull request #506 from matrix-org/erikj/push_fast (diff)
downloadsynapse-259d1ecd1dc721b8dcda01194cc0d5a0c12a591e.tar.xz
Don't generate push actions for our own events
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py
index 1000ae6301..f27ae62db5 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -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