diff options
author | Travis Ralston <travpc@gmail.com> | 2019-04-29 15:40:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 15:40:31 -0600 |
commit | 8c5b1e30d454f87fba22d16b59b7ff0a76cb4ca4 (patch) | |
tree | d67d20ab2dcae1069183bee39050d0b0968f74d1 /synapse | |
parent | Merge pull request #5100 from matrix-org/rav/verification_hackery (diff) | |
download | synapse-8c5b1e30d454f87fba22d16b59b7ff0a76cb4ca4.tar.xz |
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
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/push/baserules.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 8f0682c948..3523a40108 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -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, + } + ] } ] |