diff options
author | David Baker <dave@matrix.org> | 2016-01-20 13:44:46 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-20 13:44:46 +0000 |
commit | ea5eea2424acf183dd00aa9c299104cab7d5edcb (patch) | |
tree | e244358a9200bf84c2d7ec7b76e07655ec5e399e | |
parent | Merge pull request #511 from matrix-org/dbkr/no_push_for_own_events (diff) | |
parent | 'filtered' is a list of zero or 1 (diff) | |
download | synapse-ea5eea2424acf183dd00aa9c299104cab7d5edcb.tar.xz |
Merge branch 'dbkr/no_push_for_own_events' into develop
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index f27ae62db5..b91c165e2b 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -107,7 +107,7 @@ class BulkPushRuleEvaluator: if len(filtered) == 0: continue - if filtered.sender == uid: + if filtered[0].sender == uid: continue for rule in rules: |