Add a .m.rule.tombstone default push rule for room upgrades
As per [MSC1930](https://github.com/matrix-org/matrix-doc/pull/1930) There are no known changes to this proposal since it was accepted.
This commit is contained in:
parent
415212c3a0
commit
ceaccffdf7
2 changed files with 34 additions and 2 deletions
1
changelogs/client_server/newsfragments/2020.feature
Normal file
1
changelogs/client_server/newsfragments/2020.feature
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Add a ``.m.rule.tombstone`` default push rule for room ugprade notifications.
|
|
@ -369,6 +369,37 @@ Definition:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
``.m.rule.tombstone``
|
||||||
|
`````````````````````
|
||||||
|
Matches any 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.
|
||||||
|
|
||||||
|
Definition:
|
||||||
|
|
||||||
|
.. code:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"rule_id": ".m.rule.tombstone",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"kind": "event_match",
|
||||||
|
"key": "type",
|
||||||
|
"pattern": "m.room.tombstone"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"actions": [
|
||||||
|
"notify",
|
||||||
|
{
|
||||||
|
"set_tweak": "highlight",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
``.m.rule.roomnotif``
|
``.m.rule.roomnotif``
|
||||||
`````````````````````
|
`````````````````````
|
||||||
Matches any message whose content is unencrypted and contains the
|
Matches any message whose content is unencrypted and contains the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue