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
No related branches found
No related tags found
No related merge requests found
...@@ -133,8 +133,9 @@ class PushRuleEvaluator: ...@@ -133,8 +133,9 @@ class PushRuleEvaluator:
enabled = self.enabled_map.get(r['rule_id'], None) enabled = self.enabled_map.get(r['rule_id'], None)
if enabled is not None and not enabled: if enabled is not None and not enabled:
continue continue
elif enabled is None and not r.get("enabled", True):
if not r.get("enabled", True): # if no override, check enabled on the rule itself
# (may have come from a base rule)
continue continue
conditions = r['conditions'] conditions = r['conditions']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment