summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-20 13:44:04 +0000
committerDavid Baker <dave@matrix.org>2016-01-20 13:44:04 +0000
commit746f6e0eb3adf087363e4ee43315c584edd12175 (patch)
treee244358a9200bf84c2d7ec7b76e07655ec5e399e
parentDon't generate push actions for our own events (diff)
downloadsynapse-746f6e0eb3adf087363e4ee43315c584edd12175.tar.xz
'filtered' is a list of zero or 1
-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: