-
Notifications
You must be signed in to change notification settings - Fork 399
MSC2153: Add a default push rule to ignore m.reaction events #2153
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,43 @@ | ||||||
# Add a default push rule to ignore m.reaction events | ||||||
|
||||||
Reactions are considered "metadata" that annotates an existing event and thus | ||||||
they should not by default trigger notifications. (See | ||||||
[MSC1849](https://github.com/matrix-org/matrix-doc/blob/matthew/msc1849/proposals/1849-aggregations.md#event-format) | ||||||
for the reaction event format.) | ||||||
|
||||||
This is especially important for rooms that may be set with a room-specific rule | ||||||
to notify, as they will trigger notifications for every reaction and it's tricky | ||||||
to clear them as well. See https://github.com/vector-im/riot-web/issues/10208 | ||||||
richvdh marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
for details. | ||||||
|
||||||
## Proposal | ||||||
|
||||||
A new default override rule is to be added that ignores reaction events: | ||||||
|
||||||
```json | ||||||
{ | ||||||
"rule_id": ".m.rule.reaction", | ||||||
"default": true, | ||||||
"enabled": true, | ||||||
"conditions": [ | ||||||
{ | ||||||
"kind": "event_match", | ||||||
"key": "type", | ||||||
"pattern": "m.reaction" | ||||||
} | ||||||
], | ||||||
"actions": [ | ||||||
"dont_notify" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. per #2624: this is a no-op. We should remember to follow whatever the convention in the rest of the spec is when merging this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2624 is now matrix-org/matrix-spec#643 |
||||||
] | ||||||
} | ||||||
``` | ||||||
|
||||||
## Tradeoffs | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
We could instead allow notifications for reactions in some cases (the current | ||||||
state) but then modify each client with complex heuristics to clear them by | ||||||
advancing the read receipt. This would be more involved than for regular messages | ||||||
because reaction events may target any event in the timeline, so there's no | ||||||
guarantee that a new reaction event targets something that's currently displayed | ||||||
to the user. By going with the push rule above, client developers won't have to | ||||||
deal with this issue. |
Uh oh!
There was an error while loading. Please reload this page.