summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-05 10:02:38 +0100
committerErik Johnston <erik@matrix.org>2016-09-05 10:02:38 +0100
commit3847fa38c41c50fe0833b3fe8a84ce68dadc6e48 (patch)
treea81fd202529ddbb746b37eb065210edab73973a6 /synapse/push
parentMerge pull request #1066 from matrix-org/markjh/direct_to_device_lowerbound (diff)
downloadsynapse-3847fa38c41c50fe0833b3fe8a84ce68dadc6e48.tar.xz
Make bulk_get_push_rules_for_room use get_joined_users_from_context cache
Diffstat (limited to 'synapse/push')
-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 6ff9a06de1..f1bbe57dcb 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -38,7 +38,7 @@ def _get_rules(room_id, user_ids, store):
 @defer.inlineCallbacks
 def evaluator_for_event(event, hs, store, context):
     rules_by_user = yield store.bulk_get_push_rules_for_room(
-        event.room_id, context
+        event, context
     )
 
     # if this event is an invite event, we may need to run rules for the user