Check for a state_key on the tombstone push rule

This is an oversight from the proposal.
pull/977/head
Travis Ralston 5 years ago
parent 3087c76452
commit a171d5f6fd

@ -0,0 +1 @@
Add a missing ``state_key`` check on ``.m.rule.tombstone``.

@ -19,6 +19,11 @@ A new default override rule is to be added which is similar to `@room` notificat
"kind": "event_match", "kind": "event_match",
"key": "type", "key": "type",
"pattern": "m.room.tombstone" "pattern": "m.room.tombstone"
},
{
"kind": "event_match",
"key": "state_key",
"pattern": ""
} }
], ],
"actions": [ "actions": [

@ -382,7 +382,7 @@ Definition:
``.m.rule.tombstone`` ``.m.rule.tombstone``
````````````````````` `````````````````````
Matches any event whose type is ``m.room.tombstone``. This is intended Matches any state event whose type is ``m.room.tombstone``. This is intended
to notify users of a room when it is upgraded, similar to what an to notify users of a room when it is upgraded, similar to what an
``@room`` notification would accomplish. ``@room`` notification would accomplish.
@ -399,6 +399,11 @@ Definition:
"kind": "event_match", "kind": "event_match",
"key": "type", "key": "type",
"pattern": "m.room.tombstone" "pattern": "m.room.tombstone"
},
{
"kind": "event_match",
"key": "state_key",
"pattern": ""
} }
], ],
"actions": [ "actions": [

Loading…
Cancel
Save