element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Autocomplete @mention makes a bad choice

Open lampholder opened this issue 1 month ago • 1 comments

Steps to reproduce

In the composer, I want to get Arthur's attention, so I type @ ar then tab. Instead of picking Arthur, the autocomplete picks Amandine. Neither Amandine's full mxid nor her display name include the substring "ar" in it anywhere, so it's an odd choice.

You don't have to type quickly, if you just type @ar you'll get a dropdown with Amandine at the top.

This happens in any room that has both Arthur and Amandine in it.

Outcome

What did you expect?

Arthur

What happened instead?

Amandine

Operating system

mac

Browser information

Firefox 145.0.1 (aarch64)

URL for webapp

develop.element.io

Application version

Element version: 0a46edaaff7e-js-c7a75c882479 Crypto version: Rust SDK 0.14.0 (c3b7918), Vodozemac 0.9.0

Homeserver

lant.uk

Will you send logs?

No

lampholder avatar Nov 20 '25 13:11 lampholder

This is the doing of unhomoglyph which treats m the same as rn as in a lot of fonts they are hard to distinguish

t3chguy avatar Nov 20 '25 13:11 t3chguy