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

Commit 8c5b1e3

Browse files
authored
Add a default .m.rule.tombstone push rule (#4867)
* Add a default .m.rule.tombstone push rule In support of MSC1930: matrix-org/matrix-spec-proposals#1930 * changelog * Appease the changelog linter
1 parent b31cc1c commit 8c5b1e3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

changelog.d/4867.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a default .m.rule.tombstone push rule.

synapse/push/baserules.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,23 @@ def make_base_prepend_rules(kind, modified_base_rules):
261261
'value': True,
262262
}
263263
]
264+
},
265+
{
266+
'rule_id': 'global/override/.m.rule.tombstone',
267+
'conditions': [
268+
{
269+
'kind': 'event_match',
270+
'key': 'type',
271+
'pattern': 'm.room.tombstone',
272+
'_id': '_tombstone',
273+
}
274+
],
275+
'actions': [
276+
'notify', {
277+
'set_tweak': 'highlight',
278+
'value': True,
279+
}
280+
]
264281
}
265282
]
266283

0 commit comments

Comments
 (0)