Skip to content
Snippets Groups Projects
Commit c9500a9c authored by David Baker's avatar David Baker
Browse files

Merge pull request #678 from matrix-org/dbkr/push_obey_enable

Don't ignore the obey overlay if the rule has an enabled attribute of False
parents a68c1b15 c27c5148
Branches
Tags
No related merge requests found
......@@ -133,8 +133,9 @@ class PushRuleEvaluator:
enabled = self.enabled_map.get(r['rule_id'], None)
if enabled is not None and not enabled:
continue
if not r.get("enabled", True):
elif enabled is None and not r.get("enabled", True):
# if no override, check enabled on the rule itself
# (may have come from a base rule)
continue
conditions = r['conditions']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment