summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2019-07-05 17:37:52 +0100
committerGitHub <noreply@github.com>2019-07-05 17:37:52 +0100
commit9b1b79f3f59a93cde0d6f973e40515f65ff1b3b8 (patch)
tree1819a518852476a803b26924885c4d167ccb184e /synapse/push
parentAdd origin_server_ts and sender fields to m.replace (#5613) (diff)
downloadsynapse-9b1b79f3f59a93cde0d6f973e40515f65ff1b3b8.tar.xz
Add default push rule to ignore reactions (#5623)
This adds a default push rule following the proposal in
[MSC2153](https://github.com/matrix-org/matrix-doc/pull/2153).

See also https://github.com/vector-im/riot-web/issues/10208
See also https://github.com/matrix-org/matrix-js-sdk/pull/976
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 96d087de22..134bf805eb 100644
--- a/synapse/push/baserules.py
+++ b/synapse/push/baserules.py
@@ -1,5 +1,6 @@
 # Copyright 2015, 2016 OpenMarket Ltd
 # Copyright 2017 New Vector Ltd
+# Copyright 2019 The Matrix.org Foundation C.I.C.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -248,6 +249,18 @@ BASE_APPEND_OVERRIDE_RULES = [
         ],
         "actions": ["notify", {"set_tweak": "highlight", "value": True}],
     },
+    {
+        "rule_id": "global/override/.m.rule.reaction",
+        "conditions": [
+            {
+                "kind": "event_match",
+                "key": "type",
+                "pattern": "m.reaction",
+                "_id": "_reaction",
+            }
+        ],
+        "actions": ["dont_notify"],
+    },
 ]