mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 09:34:08 -04:00
move filter_events_for_client out of base handler
This commit is contained in:
parent
260b498ee5
commit
7e23476814
10 changed files with 251 additions and 214 deletions
|
@ -37,14 +37,14 @@ class ActionGenerator:
|
|||
# tag (ie. we just need all the users).
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def handle_push_actions_for_event(self, event, context, handler):
|
||||
def handle_push_actions_for_event(self, event, context):
|
||||
with Measure(self.clock, "handle_push_actions_for_event"):
|
||||
bulk_evaluator = yield evaluator_for_event(
|
||||
event, self.hs, self.store
|
||||
)
|
||||
|
||||
actions_by_user = yield bulk_evaluator.action_for_event_by_user(
|
||||
event, handler, context.current_state
|
||||
event, context.current_state
|
||||
)
|
||||
|
||||
context.push_actions = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue