Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 6bdf82b

Browse files
committed
Add default push rule to ignore reactions
This adds a default push rule following the proposal in [MSC2153](matrix-org/matrix-spec-proposals#2153). See also element-hq/element-web#10208 See also matrix-org/matrix-js-sdk#976
1 parent 9481707 commit 6bdf82b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

synapse/push/baserules.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,18 @@ def make_base_prepend_rules(kind, modified_base_rules):
248248
],
249249
"actions": ["notify", {"set_tweak": "highlight", "value": True}],
250250
},
251+
{
252+
"rule_id": "global/override/.m.rule.reaction",
253+
"conditions": [
254+
{
255+
"kind": "event_match",
256+
"key": "type",
257+
"pattern": "m.reaction",
258+
"_id": "_reaction",
259+
}
260+
],
261+
"actions": ["dont_notify"],
262+
},
251263
]
252264

253265

0 commit comments

Comments
 (0)