diff options
author | David Baker <dave@matrix.org> | 2015-02-25 19:17:07 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-02-25 19:17:07 +0000 |
commit | 94fa334b01d232bed96fd4ee05fc44d00330c2b9 (patch) | |
tree | f680ff0fb9a16a54a083d63e44fd2d6b04093a2a /synapse/push/baserules.py | |
parent | SYWEB-278 Don't allow rules with no rule_id. (diff) | |
download | synapse-94fa334b01d232bed96fd4ee05fc44d00330c2b9.tar.xz |
Add enable/disable overlay for push rules (REST API not yet hooked up)
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r-- | synapse/push/baserules.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 162d265f66..ba9a181b56 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -45,6 +45,7 @@ def make_base_rules(user, kind): def make_base_content_rules(user): return [ { + 'rule_id': '.m.rule.contains_user_name', 'conditions': [ { 'kind': 'event_match', @@ -66,6 +67,7 @@ def make_base_content_rules(user): def make_base_override_rules(): return [ { + 'rule_id': '.m.rule.contains_display_name', 'conditions': [ { 'kind': 'contains_display_name' @@ -80,6 +82,7 @@ def make_base_override_rules(): ] }, { + 'rule_id': '.m.rule.room_two_members', 'conditions': [ { 'kind': 'room_member_count', |