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 | |
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
-rw-r--r-- | changelog.d/4867.feature | 1 | ||||
-rw-r--r-- | synapse/push/baserules.py | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/changelog.d/4867.feature b/changelog.d/4867.feature new file mode 100644 index 0000000000..f5f9030e22 --- /dev/null +++ b/changelog.d/4867.feature @@ -0,0 +1 @@ +Add a default .m.rule.tombstone push rule. 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, + } + ] } ] |