This commit is contained in:
Erik Johnston 2018-02-16 11:35:01 +00:00
parent 3a061cae26
commit 012e8e142a
3 changed files with 9 additions and 1 deletions

View file

@ -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,
)