Skip to content

Commit 6abe713

Browse files
MSC3786: Add a default push rule to ignore m.room.server_acl events (#3786)
* Add a default push rule to ignore `m.room.server_acl` events Signed-off-by: Šimon Brandner <[email protected]> * Update MSC number Signed-off-by: Šimon Brandner <[email protected]> * Add prefix `.` Signed-off-by: Šimon Brandner <[email protected]> * Link to spec Co-authored-by: Richard van der Hoff <[email protected]> * Be more explicit about why the rule is needed Signed-off-by: Šimon Brandner <[email protected]> * Clarify push rule ordering Signed-off-by: Šimon Brandner <[email protected]> * Don't rely on unmerged MSCs for ordering Signed-off-by: Šimon Brandner <[email protected]> * Be even more explicit about why we need this Signed-off-by: Šimon Brandner <[email protected]> * Improve wording Co-authored-by: Richard van der Hoff <[email protected]> * Improve wording Co-authored-by: Richard van der Hoff <[email protected]> * Improve wording Co-authored-by: Richard van der Hoff <[email protected]> * Add missing period Co-authored-by: Richard van der Hoff <[email protected]> * Add spec link Co-authored-by: Richard van der Hoff <[email protected]> * Remove `when merged` Co-authored-by: Richard van der Hoff <[email protected]> * Remove `dont_notify` Co-authored-by: Richard van der Hoff <[email protected]> * Check `state_key` Signed-off-by: Šimon Brandner <[email protected]> Co-authored-by: Richard van der Hoff <[email protected]>
1 parent 3ab1638 commit 6abe713

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

proposals/3786-acl-notifs.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# MSC3786: Add a default push rule to ignore `m.room.server_acl` events
2+
3+
`m.room.server_acl` events allow for expressing which servers can participate in
4+
a room. Room server ACLs aren't something the user should have to worry about,
5+
so these events should not trigger notifications; however right now they *do*
6+
trigger notifications, if the user has the room rule set to `notify` (`All
7+
messages` in Element).
8+
9+
Additionally, these events are often sent quite frequently during spam attacks,
10+
which causes the users to be overwhelmed by
11+
notifications. (See <https://github.com/vector-im/element-web/issues/20788>.)
12+
13+
Due to these problems, this MSC proposes a new push rule to ignore these events.
14+
The new push rule is analogous to `.m.rule.member_event` (see <https://spec.matrix.org/v1.2/client-server-api/#default-override-rules>), or `.m.rule.reaction`
15+
(from [MSC2153](https://github.com/matrix-org/matrix-spec-proposals/pull/2153)
16+
or [MSC2677](https://github.com/matrix-org/matrix-spec-proposals/pull/2677)).
17+
18+
## Proposal
19+
20+
A new [default override
21+
rule](https://spec.matrix.org/v1.2/client-server-api/#default-override-rules) is
22+
to be added that ignores `m.room.server_acl` events:
23+
24+
```json
25+
{
26+
"rule_id": ".m.rule.room.server_acl",
27+
"default": true,
28+
"enabled": true,
29+
"conditions": [
30+
{
31+
"kind": "event_match",
32+
"key": "type",
33+
"pattern": "m.room.server_acl"
34+
},
35+
{
36+
"kind": "event_match",
37+
"key": "state_key",
38+
"pattern": ""
39+
}
40+
],
41+
"actions": []
42+
}
43+
```
44+
45+
This new push rule is inserted immediately after `.m.rule.tombstone`.
46+
47+
## Unstable prefix
48+
49+
During development, `.org.matrix.msc3786.rule.room.server_acl` is to be used
50+
instead of `.m.rule.room.server_acl`.

0 commit comments

Comments
 (0)