mirror of
https://github.com/element-hq/synapse
synced 2024-09-03 22:30:06 +00:00
Revert b4a41aa542
as it's just broken.
This commit is contained in:
parent
b4a41aa542
commit
60965bd7e5
1 changed files with 1 additions and 9 deletions
|
@ -135,16 +135,8 @@ class BulkPushRuleEvaluator:
|
|||
evaluator, rule['conditions'], uid, display_name, condition_cache
|
||||
)
|
||||
if matches:
|
||||
notify = False
|
||||
actions = []
|
||||
for a in rule['actions']:
|
||||
if a != 'dont_notify':
|
||||
actions.append(a)
|
||||
elif a == 'notify':
|
||||
notify = True
|
||||
|
||||
actions = [x for x in rule['actions'] if x != 'dont_notify']
|
||||
if actions and notify:
|
||||
if actions:
|
||||
actions_by_user[uid] = actions
|
||||
break
|
||||
defer.returnValue(actions_by_user)
|
||||
|
|
Loading…
Reference in a new issue