summary refs log tree commit diff
path: root/synapse/push/bulk_push_rule_evaluator.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-15 15:01:12 +0000
committerErik Johnston <erik@matrix.org>2018-02-15 15:47:04 +0000
commitacac21248cf1834233831383ee52198ca1bd010c (patch)
tree33701945b82a01a34a5f883cd6bf91a88c38333f /synapse/push/bulk_push_rule_evaluator.py
parentMerge pull request #2873 from matrix-org/erikj/event_creator_no_state (diff)
downloadsynapse-acac21248cf1834233831383ee52198ca1bd010c.tar.xz
Store push actions in staging area
Diffstat (limited to 'synapse/push/bulk_push_rule_evaluator.py')
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py
index 425a017bdf..841ccbd1f1 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -191,6 +191,9 @@ class BulkPushRuleEvaluator(object):
                     actions = [x for x in rule['actions'] if x != 'dont_notify']
                     if actions and 'notify' in actions:
                         actions_by_user[uid] = actions
+                        yield self.store.add_push_actions_to_staging(
+                            event.event_id, uid, actions,
+                        )
                     break
         defer.returnValue(actions_by_user)