-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Notifications: do not look for keywords in MXIDs #550
Comments
matrix-org/matrix-spec-proposals#2463 proposes a solution to this. |
anything new regarding this? |
2c: I'm actually using this feature (keyword matching) to make sure my MXID is always pinged, as i've disabled pings for my username (as it is too easily pinged with my domain) |
Note that I marked MSC3952 as fixing this as I'm fairly certain the original report isn't actually about keyword matching, but about the You could set a custom keyword for this, but in that case I think this is somewhat expect behavior. Note that MSC3952 deprecates the above rule so for most users it shouldn't be an issue. If you're setting a keyword which happens to match your localpart and your homeserver's hostname; I'd argue it should match on all those messages since generally full MXIDs aren't placed in the plain text version of messages. tl;dr From my reading of this, I think that MSC3952 fixes this, but I may be wrong! If I am let's reopen this and clarify the above! |
Unintended notifications/highlights/mentions are generated by messages containing MXIDs having substrings matching someone else's username, display name, or user-defined keywords.
MXIDs strings should be excluded when scanning a message's body for mentions using keywords. It makes no sense to try to find a substring in those as they already are explicit mentions as a whole, targeting the current user or someone else.
Example of problematic case
Username in homeserver domain
My username matches my domain (MXID of the form
@<username>:<username>.tld
).As a result, all replies to messages from any other user on my homeserver are highlighted in my Riot session, flooding me with urgent notifications without intended mentions.
Let
@alice:alice.tld
,@bob:alice.tld
and@caroline:alice.tld
be three users on the homeserveralice.tld
. All three are members of a room in which:<@bob:alice.tld>
, which matches Alice's usernamealice
.Username substring of another username
I haven't tested it, but the issue may probably also arise when someone's username is an infix of someone else's username:
@pierre:somedomain.tld
might get notified when someone replies to a message from@jean.pierre:otherdomain.tld
. To confirm.This issue has been previously reported as element-hq/element-web#11132 and matrix-org/synapse#6202, but seems to be a spec issue more than an implementation issue.
The text was updated successfully, but these errors were encountered: