mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 10:50:21 +00:00
Actually act on mark_unread
This commit is contained in:
parent
9dbd006607
commit
ea8f6e611b
1 changed files with 7 additions and 3 deletions
|
@ -191,8 +191,12 @@ class BulkPushRuleEvaluator(object):
|
||||||
)
|
)
|
||||||
if matches:
|
if matches:
|
||||||
actions = [x for x in rule["actions"] if x != "dont_notify"]
|
actions = [x for x in rule["actions"] if x != "dont_notify"]
|
||||||
if actions and "notify" in actions:
|
if actions:
|
||||||
# Push rules say we should notify the user of this event
|
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
|
actions_by_user[uid] = actions
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue