Add a default .m.rule.tombstone push rule (#4867)

* Add a default .m.rule.tombstone push rule

In support of MSC1930: https://github.com/matrix-org/matrix-doc/pull/1930

* changelog

* Appease the changelog linter
pull/14/head
Travis Ralston 6 years ago committed by GitHub
parent b31cc1c613
commit 8c5b1e30d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/4867.feature
  2. 17
      synapse/push/baserules.py

@ -0,0 +1 @@
Add a default .m.rule.tombstone push rule.

@ -261,6 +261,23 @@ BASE_APPEND_OVERRIDE_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,
}
]
}
]

Loading…
Cancel
Save