mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-09 13:04:09 +01:00
Clarify .m.rule.room_one_to_one push rule
This clarifies the `.m.rule.room_one_to_one` push rule by adding a condition on event type. Some parts of the spec already had this info, while others were missing it. Synapse has had this behaviour since the push rule appeared. Fixes https://github.com/matrix-org/matrix-doc/issues/2150
This commit is contained in:
parent
ad5d46d331
commit
4c65660b96
|
|
@ -159,8 +159,13 @@ paths:
|
||||||
],
|
],
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"is": "2",
|
"kind": "room_member_count",
|
||||||
"kind": "room_member_count"
|
"is": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "event_match",
|
||||||
|
"key": "type",
|
||||||
|
"pattern": "m.room.message"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": true,
|
"default": true,
|
||||||
|
|
|
||||||
|
|
@ -107,8 +107,13 @@
|
||||||
],
|
],
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"is": "2",
|
"kind": "room_member_count",
|
||||||
"kind": "room_member_count"
|
"is": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "event_match",
|
||||||
|
"key": "type",
|
||||||
|
"pattern": "m.room.message"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": true,
|
"default": true,
|
||||||
|
|
|
||||||
|
|
@ -563,6 +563,11 @@ Definition:
|
||||||
{
|
{
|
||||||
"kind": "room_member_count",
|
"kind": "room_member_count",
|
||||||
"is": "2"
|
"is": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "event_match",
|
||||||
|
"key": "type",
|
||||||
|
"pattern": "m.room.message"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"actions": [
|
"actions": [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue