-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Base push rule contains_user_name
should check formatted body
#8715
Comments
A quick look in the matrix.org database suggests that Synapse considers both messages noisy (i.e. action highlight and sound). When you manually open android does it show both messages as highlighted? |
Could this be an element web / element android issue then? |
Oh, hang on, the first message there you're not notified about at all (I accidentally was looking at the last one). |
Ok, yeah. Looks like Synapse never checks the formatted body when looking for user names. This failure may have been obscured when a) you had your display name set to This is somewhat a spec thing, ish maybe, as the user name rule is defined to be: |
So putting in this (or something similar) to the push event rules seems to fix it, though presumably others will be in the same boat and hand-rolling account data edits doesn't feel the right way to get notifications working:
Does the spec say we couldn't default to adding this rule if the username rule is in place ? I know the defaults can't enable it, but that doesn't mean we couldn't (say) get the clients to do this |
contains_user_name
should check formatted body
I think in Synapse we should either:
Either way this should also be handled by the spec: https://github.com/matrix-org/matrix-doc/issues/2850 |
@richvdh Do you think this is something that could slot into the backlog for the user delight project? Seems like a UX papercut that will especially affect people with common names. |
It's kinda annoying to change the push rules. The hope is that we'd get back to revamping the notifications system (matrix-org/matrix-spec-proposals#2785 etc) in the new year; given we've lasted this long with the current implementation, my inclination is to leave it for a few more weeks. |
Hi there, welcome to a few more weeks later. This hand-rolled fix has stopped working and I'm missing notifications so I'd advise against trying it if they do end up on this issue. Best workaround I have at the moment is to make your display name very unlikely to be duplicated, and re-enable notifications on display name. |
Description
Steps to reproduce
Have your notification settings in element web (or element android) set to:
Messages for my display name: None
Messages for my user name: Noisy
Send this message - this was generated in element web by typing "mich" then adding "and again this should notify my phone".
Send instead this message:
It doesn't matter if the channel is encrypted or not.
And a notification is sent through and element web highlights the message - this doesn't even have my user name it with the server included, so i would still be highlighted on other servers.
I cannot use my display name notification on "Michael" as there are a number of people with that name in the wild, and i don't want to be notified that people are talking to them.
I want to be notified only when someone uses the pill that contains my user ID, and i rely on this behaviour - i'm not sure when this stopped working but at the moment I simply don't get informed when people are talking to me, and have to manually scrape channels looking for my name.
I'm sure this worked before - users would have to send a pill and i would be notified of it, but I can't say when it's broken - i've just noticed it in the last few weeks.
Version information
Running on matrix.org (test messages sent over federation from another server)
Using stock element web and element-android - no dev versions installed.
The text was updated successfully, but these errors were encountered: