-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Keywords to disable notifications #1074
Comments
Related #594 |
Loosely related case-sensitive keywords #205 |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
At the spec level it seems doable, by creating a push rule with a This first example allows to disable notification for messages containing {
"actions": [
"dont_notify"
],
"pattern": "happy birthday"
} This one has the possibly unexpected side effect of disabling also notifications for messages containing happy birthday and your Matrix username. It's also doable per-room with an {
"actions": [
"dont_notify"
],
"conditions": [
{
"key": "room_id",
"kind": "event_match",
"pattern": "!room_id:server.org"
},
{
"kind": "event_match",
"key": "content.body",
"pattern": "happy birthday"
}
]
} This one has no unwanted side-effects for default push rules. Note that while regular expressions are not supported, it's possible to use a glob pattern. Conditions on message length are not supported either. |
(I've first reported this for Element at element-hq/element-meta#689 and submitting this here as suggested by @t3chguy - I'm not actually familiar enough with how the Matrix protocol works to go into technical details)
I'd like to be able to define keywords or regular expressions that will disable the message notification (possibly for some channel specifically). And maybe a maximum message length (if the message is longer, produce the notification). It would be like the notification keywords that already exist, but opposite.
Why would you like to do it?
I have notification enabled for each message. This is usually fine because the channels I'm in are quite low traffic and I want to be able to passively follow discussions while doing something else. However, there are messages that don't warrant any notifications. There's no way I'd meaningfully react to such messages and those can wait the next time I open Element.
For instance, it is the birthday of somebody and people are used to say "Happy birthday X!" in a specific channel. This is nice and warm, it also does not require being notified. The birthday lasts for the day, the messages can wait a few minutes or hours to be read.
How would you like to achieve it?
I'd like to define a list of keywords or sub-strings like "Happy birthday" that will disable the notification for messages containing it, possibly restricted to a channel. It's not perfect, because I could miss critical information in message like this: "Happy birthday X! By the way, [CRITICAL INFORMATION]" so a regular expression or defining a maximum message length could be useful but then again, the critical information will be seen later and maybe it should belong to a separate message.
Have you considered any alternatives?
I considered temporarily disabling notifications for the channel in which these messages are sent but I still want to be notified for the other messages in this channel.
The text was updated successfully, but these errors were encountered: