diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-16 11:35:01 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-02-16 11:35:01 +0000 |
commit | 012e8e142a4ca7d87e1ffd66cce44b23bf943e9c (patch) | |
tree | 7742bcb7216e50b8378e10efc7075f0572175b4d /synapse/push/bulk_push_rule_evaluator.py | |
parent | Fix unit test (diff) | |
download | synapse-012e8e142a4ca7d87e1ffd66cce44b23bf943e9c.tar.xz |
Comments
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 1140788aa7..bf4f1c5836 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -189,6 +189,9 @@ class BulkPushRuleEvaluator(object): if matches: actions = [x for x in rule['actions'] if x != 'dont_notify'] if actions and 'notify' in actions: + # Push rules say we should notify the user of this event, + # so we mark it in the DB in the staging area. (This + # will then get handled when we persist the event) yield self.store.add_push_actions_to_staging( event.event_id, uid, actions, ) |