mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Preserve truthiness
This commit is contained in:
parent
a284ad4092
commit
003853e702
@ -130,7 +130,8 @@ class PushRuleEvaluator:
|
|||||||
evaluator = PushRuleEvaluatorForEvent(ev, room_member_count)
|
evaluator = PushRuleEvaluatorForEvent(ev, room_member_count)
|
||||||
|
|
||||||
for r in self.rules:
|
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
|
continue
|
||||||
|
|
||||||
if not r.get("enabled", True):
|
if not r.get("enabled", True):
|
||||||
|
Loading…
Reference in New Issue
Block a user