summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2016-01-20 13:33:25 +0000
committerDavid Baker <dbkr@users.noreply.github.com>2016-01-20 13:33:25 +0000
commitd4cefb62898db627e025d71406d12ffae47bc40a (patch)
tree61d88008893a0f34694673760293818204d6d973
parentMerge pull request #506 from matrix-org/erikj/push_fast (diff)
parentDon't generate push actions for our own events (diff)
downloadsynapse-d4cefb62898db627e025d71406d12ffae47bc40a.tar.xz
Merge pull request #511 from matrix-org/dbkr/no_push_for_own_events
Don't generate push actions for our own events
-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