forked from MirrorHub/synapse
Don't edit ruleset
This commit is contained in:
parent
2c176e02ae
commit
345ff2196a
1 changed files with 4 additions and 5 deletions
|
@ -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 a new issue