mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 10:10:06 +00:00
Preserve truthiness
This commit is contained in:
parent
a284ad4092
commit
003853e702
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ class PushRuleEvaluator:
|
|||
evaluator = PushRuleEvaluatorForEvent(ev, room_member_count)
|
||||
|
||||
for r in self.rules:
|
||||
if self.enabled_map.get(r['rule_id'], None) is False:
|
||||
enabled = self.enabled_map.get(r['rule_id'], None)
|
||||
if enabled is not None and not enabled:
|
||||
continue
|
||||
|
||||
if not r.get("enabled", True):
|
||||
|
|
Loading…
Reference in a new issue