Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Cannot mention users

Open akachapati opened this issue 9 years ago • 7 comments

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?

akachapati avatar Jan 19 '17 05:01 akachapati

Hi @akachapati did you have erros on your console?

karlprieb avatar Jan 19 '17 15:01 karlprieb

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 avatar Jan 19 '17 15:01 akachapati

@akachapati Can you send us a screen shoot of your permissions page?

rodrigok avatar Jan 19 '17 22:01 rodrigok

I tried locally and can't reproduce this behavior

rodrigok avatar Jan 19 '17 22:01 rodrigok

@rodrigok Thank you for looking into this. Screenshot is attached.

Please try following steps to recreate the issue

  1. Add a new user to your server, set email as verified. Add said user to a room
  2. Log in as a regular user, go to same room
  3. 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 permissions

In the screenshot, the admin and regular user roles are shown in arrow

akachapati avatar Jan 20 '17 03:01 akachapati

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.

rodrigok avatar Jan 20 '17 19:01 rodrigok

Thanks @rodrigok

akachapati avatar Jan 24 '17 13:01 akachapati