diff options
author | David Baker <dave@matrix.org> | 2016-01-20 13:24:59 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-20 13:24:59 +0000 |
commit | 259d1ecd1dc721b8dcda01194cc0d5a0c12a591e (patch) | |
tree | 61d88008893a0f34694673760293818204d6d973 /synapse/push | |
parent | Merge pull request #506 from matrix-org/erikj/push_fast (diff) | |
download | synapse-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.py | 3 |
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 |