Merge pull request #1176 from matrix-org/notifications/room
spec notifications key on power level event and provide @room in example
This commit is contained in:
commit
a6d42bf140
3 changed files with 17 additions and 1 deletions
1
changelogs/client_server/newsfragments/1176.new
Normal file
1
changelogs/client_server/newsfragments/1176.new
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Specify how to control the power level required for ``@room``
|
|
@ -14,7 +14,10 @@
|
||||||
"users": {
|
"users": {
|
||||||
"@example:localhost": 100
|
"@example:localhost": 100
|
||||||
},
|
},
|
||||||
"users_default": 0
|
"users_default": 0,
|
||||||
|
"notifications": {
|
||||||
|
"room": 20
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"state_key": "",
|
"state_key": "",
|
||||||
"origin_server_ts": 1431961217939,
|
"origin_server_ts": 1431961217939,
|
||||||
|
|
|
@ -85,6 +85,18 @@ properties:
|
||||||
``user_id`` is mentioned in the ``users`` key. Defaults to 0 if
|
``user_id`` is mentioned in the ``users`` key. Defaults to 0 if
|
||||||
unspecified.
|
unspecified.
|
||||||
type: integer
|
type: integer
|
||||||
|
notifications:
|
||||||
|
properties:
|
||||||
|
room:
|
||||||
|
type: integer
|
||||||
|
description: The level required to trigger an ``@room`` notification. Defaults to 50 if unspecified.
|
||||||
|
additionalProperties:
|
||||||
|
type: integer
|
||||||
|
description: |-
|
||||||
|
The power level requirements for specific notification types.
|
||||||
|
This is a mapping from ``key`` to power level for that notifications key.
|
||||||
|
title: Notifications
|
||||||
|
type: object
|
||||||
type: object
|
type: object
|
||||||
state_key:
|
state_key:
|
||||||
description: A zero-length string.
|
description: A zero-length string.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue