1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/push/action_generator.py b/synapse/push/action_generator.py
index 2ad5f82da2..148b1bda8e 100644
--- a/synapse/push/action_generator.py
+++ b/synapse/push/action_generator.py
@@ -43,7 +43,9 @@ class ActionGenerator:
actions_by_user = bulk_evaluator.action_for_event_by_user(event)
- for uid,actions in actions_by_user.items():
- self.store.set_actions_for_event(
- event, uid, None, actions
- )
+ yield self.store.set_actions_for_event_and_users(
+ event,
+ [
+ (uid, None, actions) for uid, actions in actions_by_user.items()
+ ]
+ )
|