diff options
author | David Baker <dave@matrix.org> | 2016-01-20 13:44:04 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-20 13:44:04 +0000 |
commit | 746f6e0eb3adf087363e4ee43315c584edd12175 (patch) | |
tree | e244358a9200bf84c2d7ec7b76e07655ec5e399e | |
parent | Don't generate push actions for our own events (diff) | |
download | synapse-746f6e0eb3adf087363e4ee43315c584edd12175.tar.xz |
'filtered' is a list of zero or 1
-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: |