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

Commit

Permalink
Add a default .m.rule.tombstone push rule (#4867)
Browse files Browse the repository at this point in the history
* Add a default .m.rule.tombstone push rule

In support of MSC1930: matrix-org/matrix-spec-proposals#1930

* changelog

* Appease the changelog linter
  • Loading branch information
turt2live committed Apr 29, 2019
1 parent b31cc1c commit 8c5b1e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/4867.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a default .m.rule.tombstone push rule.
17 changes: 17 additions & 0 deletions synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,23 @@ def make_base_prepend_rules(kind, modified_base_rules):
'value': True,
}
]
},
{
'rule_id': 'global/override/.m.rule.tombstone',
'conditions': [
{
'kind': 'event_match',
'key': 'type',
'pattern': 'm.room.tombstone',
'_id': '_tombstone',
}
],
'actions': [
'notify', {
'set_tweak': 'highlight',
'value': True,
}
]
}
]

Expand Down

0 comments on commit 8c5b1e3

Please sign in to comment.