mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 11:34:07 -04:00
Make bulk_get_push_rules_for_room use get_joined_users_from_context cache
This commit is contained in:
parent
81b94c5750
commit
3847fa38c4
2 changed files with 8 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue