mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Revert b4a41aa542
as it's just broken.
This commit is contained in:
parent
b4a41aa542
commit
60965bd7e5
@ -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 New Issue
Block a user