Make bulk_get_push_rules_for_room use get_joined_users_from_context cache

This commit is contained in:
Erik Johnston 2016-09-05 10:02:38 +01:00
parent 81b94c5750
commit 3847fa38c4
2 changed files with 8 additions and 13 deletions

View file

@ -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