summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-03-04 15:29:02 +0000
committerDavid Baker <dave@matrix.org>2015-03-04 15:29:02 +0000
commit590b544f678cba7a364f2ddf205993d50feba76e (patch)
tree01ca52cbf4f6d73068de0637f3e2ae55c1e79d81 /synapse/push
parentMerge branch 'develop' into pushrules2 (diff)
downloadsynapse-590b544f678cba7a364f2ddf205993d50feba76e.tar.xz
Add default rule to suppress notices.
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/baserules.py13
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': [
             ],