mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't edit ruleset
This commit is contained in:
parent
2c176e02ae
commit
345ff2196a
@ -131,11 +131,10 @@ class PushRuleEvaluator:
|
|||||||
evaluator = PushRuleEvaluatorForEvent.create(ev, room_member_count)
|
evaluator = PushRuleEvaluatorForEvent.create(ev, room_member_count)
|
||||||
|
|
||||||
for r in self.rules:
|
for r in self.rules:
|
||||||
if r['rule_id'] in self.enabled_map:
|
if self.enabled_map.get(r['rule_id'], None) is False:
|
||||||
r['enabled'] = self.enabled_map[r['rule_id']]
|
continue
|
||||||
elif 'enabled' not in r:
|
|
||||||
r['enabled'] = True
|
if not r.get("enabled", True):
|
||||||
if not r['enabled']:
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
conditions = r['conditions']
|
conditions = r['conditions']
|
||||||
|
Loading…
Reference in New Issue
Block a user