Merge pull request #2052 from matrix-org/travis/1.0/pushrules-kind

Change reference for definition of push rule condition kinds
pull/977/head
Travis Ralston 6 years ago committed by GitHub
commit e8d6a57a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,16 +16,20 @@ title: PushCondition
type: object
properties:
kind:
enum:
- event_match
- contains_display_name
- room_member_count
type: string
description: |-
The kind of condition to apply. See `conditions <#conditions>`_ for
more information on the allowed kinds and how they work.
key:
type: string
description: |-
Required for ``event_match`` conditions. The dot-separated field of the
event to match.
Required for ``sender_notification_permission`` conditions. The field in
the power level event the user needs a minimum power level for. Fields
must be specified under the ``notifications`` property in the power level
event's ``content``.
x-example: content.body
pattern:
type: string

@ -0,0 +1 @@
Clarify which push rule condition kinds exist.
Loading…
Cancel
Save