diff --git a/api/client-server/pushrules.yaml b/api/client-server/pushrules.yaml index e23c9189e40..a1cbc3543cd 100644 --- a/api/client-server/pushrules.yaml +++ b/api/client-server/pushrules.yaml @@ -159,8 +159,13 @@ paths: ], "conditions": [ { - "is": "2", - "kind": "room_member_count" + "kind": "room_member_count", + "is": "2" + }, + { + "kind": "event_match", + "key": "type", + "pattern": "m.room.message" } ], "default": true, diff --git a/changelogs/client_server/newsfragments/2152.clarification b/changelogs/client_server/newsfragments/2152.clarification new file mode 100644 index 00000000000..03fde9ff961 --- /dev/null +++ b/changelogs/client_server/newsfragments/2152.clarification @@ -0,0 +1 @@ +Clarify the conditions for the ``.m.rule.room_one_to_one`` push rule. diff --git a/event-schemas/examples/m.push_rules b/event-schemas/examples/m.push_rules index e4f0a959f1f..34bc2fe6e2d 100644 --- a/event-schemas/examples/m.push_rules +++ b/event-schemas/examples/m.push_rules @@ -107,8 +107,13 @@ ], "conditions": [ { - "is": "2", - "kind": "room_member_count" + "kind": "room_member_count", + "is": "2" + }, + { + "kind": "event_match", + "key": "type", + "pattern": "m.room.message" } ], "default": true, diff --git a/specification/modules/push.rst b/specification/modules/push.rst index 33ca7fd7b48..b16ed8a6d6c 100644 --- a/specification/modules/push.rst +++ b/specification/modules/push.rst @@ -563,6 +563,11 @@ Definition: { "kind": "room_member_count", "is": "2" + }, + { + "kind": "event_match", + "key": "type", + "pattern": "m.room.message" } ], "actions": [