diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-15 15:01:12 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-02-15 15:47:04 +0000 |
commit | acac21248cf1834233831383ee52198ca1bd010c (patch) | |
tree | 33701945b82a01a34a5f883cd6bf91a88c38333f /synapse/push/bulk_push_rule_evaluator.py | |
parent | Merge pull request #2873 from matrix-org/erikj/event_creator_no_state (diff) | |
download | synapse-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.py | 3 |
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) |