diff options
author | David Baker <dave@matrix.org> | 2017-10-10 15:23:00 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-10-10 15:23:00 +0100 |
commit | 0f1eb3e914a1e47e441bd8bfb7d523882646fb6e (patch) | |
tree | ddac381da32915a648d3e1985efa08f78658e31c /synapse/push/baserules.py | |
parent | There was already a constant for this (diff) | |
download | synapse-0f1eb3e914a1e47e441bd8bfb7d523882646fb6e.tar.xz |
Use notification levels in power_levels
Rather than making the condition directly require a specific power level. This way the level require to notify a room can be configured per room.
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r-- | synapse/push/baserules.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 71f9ab6b25..9dce99ebec 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -249,8 +249,8 @@ BASE_APPEND_OVERRIDE_RULES = [ '_id': '_roomnotif_content', }, { - 'kind': 'sender_power_level', - 'is': '>=50', + 'kind': 'sender_notification_permission', + 'key': 'room', '_id': '_roomnotif_pl', }, ], |