-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Reply is highlighted even without actual mention when domain matches username #6202
Comments
Let's track this from the client perspective for now: element-hq/element-web#7874 |
@turt2live It doesn't look like linked riot web issue is related to this at all. Also the issue is on the backend (synapse controls the notifications), so why track it from the client? |
Asked this first on element-hq/element-web#7874 but was deemed off-topic, so reposting here: Is there any reason why synapse doesn't first strip the fallback before checking for push rules? |
@lieuwex The specification seems to say that's up to a client (quoting from that link):
|
@clokep Doesn't that only suggest for rendering the content. Not for applying push rules? For push rules I think it's more intuitive to strip the fallback before applying the rules, since it would solve issues like this one. A client would strip the fallback (iff the client support rich replies), this idea could also be extended onto the server behavior on push rules. |
Ah, I see your point here. It's a bit confusing when it specifically says "client"! 😄 Looks like matrix-org/matrix-doc#2736 got filed to clarify what servers are supposed to do here. |
What a coincidence that that issue is opened recently. But that issue seems like a good one to use. |
There's more apropriate issue for this problem ;) |
Forwarded from element-hq/element-web#11132, as highlights are computed server-side.
Description
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.
Steps to reproduce
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: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:domain.tld
might get notified when someone replies to a message from@jean.pierre@domain.tld
. To confirm.Remediation?
Do not allow partial matches on MXIDs contained in messages for highlighting purposes.
A highlight should require the whole MXID to match.
Version information
The text was updated successfully, but these errors were encountered: