mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-19 01:24:09 +02:00
Fix a couple of typos, remove .m.rule.member_event
This commit is contained in:
parent
8a050aebc0
commit
740f775932
|
|
@ -354,13 +354,13 @@ Definition:
|
||||||
.. code:: json
|
.. code:: json
|
||||||
|
|
||||||
{
|
{
|
||||||
"rule_id": ".m.rule.room_two_members",
|
"rule_id": ".m.rule.room_one_to_one",
|
||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"kind": "room_member_count"
|
"kind": "room_member_count",
|
||||||
"is": "2",
|
"is": "2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"actions": [
|
"actions": [
|
||||||
|
|
@ -402,7 +402,7 @@ Definition:
|
||||||
{
|
{
|
||||||
"key": "state_key",
|
"key": "state_key",
|
||||||
"kind": "event_match",
|
"kind": "event_match",
|
||||||
"pattern": "@alice:example.com"
|
"pattern": "[the user's Matrix ID]"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"actions": [
|
"actions": [
|
||||||
|
|
@ -418,34 +418,6 @@ Definition:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
``.m.rule.member_event``
|
|
||||||
````````````````````````
|
|
||||||
Matches membership change events.
|
|
||||||
|
|
||||||
Definition:
|
|
||||||
|
|
||||||
.. code:: json
|
|
||||||
|
|
||||||
{
|
|
||||||
"rule_id": ".m.rule.member_event",
|
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"conditions": [
|
|
||||||
{
|
|
||||||
"key": "type",
|
|
||||||
"kind": "event_match",
|
|
||||||
"pattern": "m.room.member"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"actions": [
|
|
||||||
"notify",
|
|
||||||
{
|
|
||||||
"set_tweak": "highlight",
|
|
||||||
"value": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
``.m.rule.message``
|
``.m.rule.message``
|
||||||
```````````````````
|
```````````````````
|
||||||
Matches all chat messages.
|
Matches all chat messages.
|
||||||
|
|
@ -455,7 +427,7 @@ Definition:
|
||||||
.. code:: json
|
.. code:: json
|
||||||
|
|
||||||
{
|
{
|
||||||
"rule_id": ".m.rule.member_event",
|
"rule_id": ".m.rule.message",
|
||||||
"default": true,
|
"default": true,
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"conditions": [
|
"conditions": [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue