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

Commit

Permalink
Add default push rule to ignore reactions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jryans committed Jul 5, 2019
1 parent 9481707 commit 6bdf82b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@ def make_base_prepend_rules(kind, modified_base_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"],
},
]


Expand Down

0 comments on commit 6bdf82b

Please sign in to comment.