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

Implement MSC3786: Add a default push rule to ignore m.room.server_acl events #12601

Merged
1 change: 1 addition & 0 deletions changelog.d/12601.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implement MSC3786: Add a default push rule to ignore m.room.server_acl events.
12 changes: 12 additions & 0 deletions synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ def make_base_prepend_rules(
],
"actions": ["dont_notify"],
},
{
"rule_id": "global/override/.org.matrix.msc3786.rule.room.server_acl",
"conditions": [
{
"kind": "event_match",
"key": "type",
"pattern": "m.room.server_acl",
"_cache_key": "_room_server_acl",
}
],
"actions": ["dont_notify"],
},
]


Expand Down