summary refs log tree commit diff
path: root/synapse/push/baserules.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-10-10 15:23:00 +0100
committerDavid Baker <dave@matrix.org>2017-10-10 15:23:00 +0100
commit0f1eb3e914a1e47e441bd8bfb7d523882646fb6e (patch)
treeddac381da32915a648d3e1985efa08f78658e31c /synapse/push/baserules.py
parentThere was already a constant for this (diff)
downloadsynapse-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.py4
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',
             },
         ],