Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSC3786: Add a default push rule to ignore m.room.server_acl events #3786

Merged
merged 16 commits into from
Jul 17, 2022
Merged
35 changes: 35 additions & 0 deletions proposals/3786-acl-notifs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# MSC3786: Add a default push rule to ignore `m.room.server_acl` events

`m.room.server_acl` events allow for expressing which servers can participate in
a room. Often during spam attacks, these events are sent quite frequently, which
causes the users to be overwhelmed by notifications. (See
<https://github.com/vector-im/element-web/issues/20788>) As this is very
unideal, this MSC proposes a new push rule to avoid this.
SimonBrandner marked this conversation as resolved.
Show resolved Hide resolved

## Proposal

A new default override rule is to be added that ignores `m.room.server_acl`
SimonBrandner marked this conversation as resolved.
Show resolved Hide resolved
events:
SimonBrandner marked this conversation as resolved.
Show resolved Hide resolved

```json
{
"rule_id": ".m.rule.room.server_acl",
richvdh marked this conversation as resolved.
Show resolved Hide resolved
"default": true,
"enabled": true,
"conditions": [
{
"kind": "event_match",
"key": "type",
"pattern": "m.room.server_acl"
}
SimonBrandner marked this conversation as resolved.
Show resolved Hide resolved
],
"actions": [
"dont_notify"
]
SimonBrandner marked this conversation as resolved.
Show resolved Hide resolved
}
```

## Unstable prefix

During development, `.org.matrix.msc3786.rule.room.server_acl` is to be used
instead of `.m.rule.room.server_acl`.