Cannot mention users
Your Rocket.Chat version: 0.49.3
In the latest version of Rocket.Chat, I am getting a strange issue where I cannot mention some members in a room. When I type in a person's username, it doesn't appear in search. But if I correctly type in the full name, in the chat message it appears like a mention. Didn't see anything in permissions that influence this. Could this be a bug with the latest release?
Hi @akachapati did you have erros on your console?
Here are a few things I noticed. If I am logged in as an administrator, I am able pull up everyone in the room when mentioning someone. So for example @username pulls up all matching users as I fill in the term. When I am logged in to the same room as a normal user, I am not able to tag some of the users. But strangely, once they come online, I am able to search, tag them again.
Could this be related to caching? Anybody else seeing this problem?
There's nothing in the log either.
@akachapati Can you send us a screen shoot of your permissions page?
I tried locally and can't reproduce this behavior
@rodrigok Thank you for looking into this. Screenshot is attached.
Please try following steps to recreate the issue
- Add a new user to your server, set email as verified. Add said user to a room
- Log in as a regular user, go to same room
- Try to mention the newly added user who's yet to log in. When you hit @[username] the search box doesn't pop up with suggestions

In the screenshot, the admin and regular user roles are shown in arrow
Users should have permission view-d-room to be able to mention other users
https://github.com/RocketChat/Rocket.Chat/blob/develop/server/publications/spotlight.coffee#L12-L13
I'll close this issue, please reopen it if the problem persists.
Thanks @rodrigok