Merge pull request #2223 from matrix-org/travis/fix-tombstone

Check for a state_key on the tombstone push rule
anoa/msc2322
Travis Ralston 5 years ago committed by GitHub
commit 87590cd778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",
"key": "type",
"pattern": "m.room.tombstone"
},
{
"kind": "event_match",
"key": "state_key",
"pattern": ""
}
],
"actions": [

@ -382,7 +382,7 @@ Definition:
``.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
``@room`` notification would accomplish.
@ -399,6 +399,11 @@ Definition:
"kind": "event_match",
"key": "type",
"pattern": "m.room.tombstone"
},
{
"kind": "event_match",
"key": "state_key",
"pattern": ""
}
],
"actions": [

Loading…
Cancel
Save