Skip to content

Reply is highlighted even without actual mention when MXID substring matches username #11132

@pacien

Description

@pacien

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 homeserver alice.tld. All three are members of a room in which:

  1. Bob sends a message that does not mention Alice.
  2. Caroline replies to Bob's message using the reply feature, still not mentionning Alice.
  3. Alice's Riot highlights Caroline's message and Alice is notified, even though nobody intended to mention her.

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

  • Platforms: all
  • Version: 1.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions