diff options
author | David Baker <dbkr@users.noreply.github.com> | 2016-01-20 13:33:25 +0000 |
---|---|---|
committer | David Baker <dbkr@users.noreply.github.com> | 2016-01-20 13:33:25 +0000 |
commit | d4cefb62898db627e025d71406d12ffae47bc40a (patch) | |
tree | 61d88008893a0f34694673760293818204d6d973 /synapse | |
parent | Merge pull request #506 from matrix-org/erikj/push_fast (diff) | |
parent | Don't generate push actions for our own events (diff) | |
download | synapse-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
Diffstat (limited to 'synapse')
-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 |