element-hq / element-hq/element-web

tab completion treats search for @r to include users starting m

Open
#16,477 4 comments 0 reactions 0 assignees View on GitHub
A-Autocomplete P2 S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Description

Typing `@r` in a channel does not tab complete to users with "r" at the start of their name.

I'm fairly sure this used to just show users which matched 'r'

### Steps to reproduce

Type `@r` in the message box:

![tab-complete](https://user-images.githubusercontent.com/1917473/108342895-38357e00-71d3-11eb-92d0-5d43bdb38817.png)

Get these options:

![suggestion](https://user-images.githubusercontent.com/1917473/108342917-3ff52280-71d3-11eb-9873-3e73e1d57a38.png)

Describe how what happens differs from what you expected.

I would expect that matmaul no 'R' in display name or mxid, matthew and manu (an R in their mxID only: 'matrRix.org') are not offered as suggestions, and instead richvdh with R at the start of their name, to be among the first in the suggestions.

Beyond these first few users which are definitely wrong, the remaining users all start R or M as well - it's like the two letters are confused with each other.

Logs being sent: yes

### Version information

- **Platform**: web

For the web app:

- **Browser**: Firefox 85.0.1
- **OS**: ubuntu
- **URL**: app.element.io

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.