diff options
author | David Baker <dave@matrix.org> | 2015-03-04 15:29:02 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-03-04 15:29:02 +0000 |
commit | 590b544f678cba7a364f2ddf205993d50feba76e (patch) | |
tree | 01ca52cbf4f6d73068de0637f3e2ae55c1e79d81 /synapse/push/baserules.py | |
parent | Merge branch 'develop' into pushrules2 (diff) | |
download | synapse-590b544f678cba7a364f2ddf205993d50feba76e.tar.xz |
Add default rule to suppress notices.
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r-- | synapse/push/baserules.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index c8c19f2a18..91c528cc19 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -105,6 +105,19 @@ def make_base_override_rules(): def make_base_underride_rules(): return [ { + 'rule_id': 'global/underride/.m.rule.suppress_notices', + 'conditions': [ + { + 'kind': 'event_match', + 'key': 'content.msgtype', + 'pattern': 'm.notice', + } + ], + 'actions': [ + 'dont-notify', + ] + }, + { 'rule_id': 'global/underride/.m.rule.fallback', 'conditions': [ ], |