mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-21 02:44:09 +01:00
Merge pull request #2223 from matrix-org/travis/fix-tombstone
Check for a state_key on the tombstone push rule
This commit is contained in:
commit
87590cd778
|
|
@ -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…
Reference in a new issue