Merge pull request #1176 from matrix-org/notifications/room

spec notifications key on power level event and provide @room in example
pull/977/head
Travis Ralston 6 years ago committed by GitHub
commit a6d42bf140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
Specify how to control the power level required for ``@room``

@ -14,7 +14,10 @@
"users": {
"@example:localhost": 100
},
"users_default": 0
"users_default": 0,
"notifications": {
"room": 20
}
},
"state_key": "",
"origin_server_ts": 1431961217939,

@ -85,6 +85,18 @@ properties:
``user_id`` is mentioned in the ``users`` key. Defaults to 0 if
unspecified.
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
state_key:
description: A zero-length string.

Loading…
Cancel
Save