diff options
author | David Baker <dave@matrix.org> | 2015-02-26 18:07:44 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-02-26 18:07:44 +0000 |
commit | 19590881568f5aafd1b1d0b12cd6c10954ee60b1 (patch) | |
tree | 094ea5b8d0d973d0ffd0b635cf97ce37c2df154c /synapse/push/baserules.py | |
parent | whitespace (diff) | |
download | synapse-19590881568f5aafd1b1d0b12cd6c10954ee60b1.tar.xz |
Add API for getting/setting enabled-ness of push rules.
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r-- | synapse/push/baserules.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index ba9a181b56..f4d2be11f6 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -37,7 +37,7 @@ def make_base_rules(user, kind): for r in rules: r['priority_class'] = PRIORITY_CLASS_MAP[kind] - r['default'] = True + r['default'] = True # Deprecated, left for backwards compat return rules @@ -45,7 +45,7 @@ def make_base_rules(user, kind): def make_base_content_rules(user): return [ { - 'rule_id': '.m.rule.contains_user_name', + 'rule_id': 'global/content/.m.rule.contains_user_name', 'conditions': [ { 'kind': 'event_match', @@ -67,7 +67,7 @@ def make_base_content_rules(user): def make_base_override_rules(): return [ { - 'rule_id': '.m.rule.contains_display_name', + 'rule_id': 'global/override/.m.rule.contains_display_name', 'conditions': [ { 'kind': 'contains_display_name' @@ -82,7 +82,7 @@ def make_base_override_rules(): ] }, { - 'rule_id': '.m.rule.room_two_members', + 'rule_id': 'global/override/.m.rule.room_two_members', 'conditions': [ { 'kind': 'room_member_count', |