Incorporate review bits

This commit is contained in:
Brendan Abolivier 2020-06-12 15:11:01 +01:00
parent 1e5a50302f
commit e47e5a2dcd
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD
3 changed files with 20 additions and 22 deletions

View file

@ -191,13 +191,12 @@ class BulkPushRuleEvaluator(object):
)
if matches:
actions = [x for x in rule["actions"] if x != "dont_notify"]
if actions:
if (
"notify" in actions
or "org.matrix.msc2625.mark_unread" in actions
):
# Push rules say we should act on this event.
actions_by_user[uid] = actions
if (
"notify" in actions
or "org.matrix.msc2625.mark_unread" in actions
):
# Push rules say we should act on this event.
actions_by_user[uid] = actions
break
# Mark in the DB staging area the push actions for users who should be