Actually, when you mention someone from a room he/she isn't, it moves the mentionned user to the room.


It seems to be a feature, not a bug:

I think it would be great to have a setting entry that permits to disable that.
It would be perfect that we could whitelist some users so that nobody can move us by that way except whitelisted ones.
Hi, I want to work on it.
Do we need to set permission for the role or a specific user?
We should standardize the behavior of how we deal with the mentioned users. Rather than auto-inviting them on public groups and ignoring the mention on private ones, we should alert the sender with an "ephemeral" message that the user mentioned is not in the room, and the message should also have a button to invite that user.
@engelgabriel https://github.com/RocketChat/Rocket.Chat/pull/13962 This pr solves this issue, kindly review it please.
This bug still exists in 3.0.2
Most helpful comment
We should standardize the behavior of how we deal with the mentioned users. Rather than auto-inviting them on public groups and ignoring the mention on private ones, we should alert the sender with an "ephemeral" message that the user mentioned is not in the room, and the message should also have a button to invite that user.