mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-06 01:22:16 +00:00
Better fix for actions with both dont_notify and tweaks
This commit is contained in:
parent
60965bd7e5
commit
3fe8c56736
@ -136,7 +136,7 @@ class BulkPushRuleEvaluator:
|
|||||||
)
|
)
|
||||||
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:
|
if actions and 'notify' in actions:
|
||||||
actions_by_user[uid] = actions
|
actions_by_user[uid] = actions
|
||||||
break
|
break
|
||||||
defer.returnValue(actions_by_user)
|
defer.returnValue(actions_by_user)
|
||||||
|
Loading…
Reference in New Issue
Block a user