summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-20 13:44:46 +0000
committerDavid Baker <dave@matrix.org>2016-01-20 13:44:46 +0000
commitea5eea2424acf183dd00aa9c299104cab7d5edcb (patch)
treee244358a9200bf84c2d7ec7b76e07655ec5e399e /synapse
parentMerge pull request #511 from matrix-org/dbkr/no_push_for_own_events (diff)
parent'filtered' is a list of zero or 1 (diff)
downloadsynapse-ea5eea2424acf183dd00aa9c299104cab7d5edcb.tar.xz
Merge branch 'dbkr/no_push_for_own_events' into develop
Diffstat (limited to 'synapse')
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py2
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: