summary refs log tree commit diff
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2019-07-05 12:16:45 +0100
committerJ. Ryan Stinnett <jryans@gmail.com>2019-07-05 12:16:49 +0100
commit6bdf82b3039fe5d667874b6606116d8dd927a394 (patch)
tree726fa5a58df231ff8428c05f52d9d0b85b137e33
parentFixes to the federation rate limiter (#5621) (diff)
downloadsynapse-6bdf82b3039fe5d667874b6606116d8dd927a394.tar.xz
Add default push rule to ignore reactions
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
-rw-r--r--synapse/push/baserules.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py
index 96d087de22..fe5dd1e4a7 100644
--- a/synapse/push/baserules.py
+++ b/synapse/push/baserules.py
@@ -248,6 +248,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"],
+    },
 ]