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.
This commit is contained in:
David Baker 2017-10-10 15:23:00 +01:00
parent c9f034b4ac
commit 0f1eb3e914
3 changed files with 22 additions and 12 deletions

View file

@ -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',
},
],