-
Notifications
You must be signed in to change notification settings - Fork 339
Description
Description:
There is a difference in how user mentions are parsed and rendered in EmbeddedChat compared to the main Rocket.Chat core.
In Core Chat, a mention directly enclosed with parentheses (@username) is rendered as plain text and does not trigger a mention notification or highlight. However, in EmbeddedChat, the same pattern is parsed as a valid User Mention, displaying the mention tag.
Steps to reproduce:
- Open Rocket.Chat Core.
- Send a message:
(@username) - Observe that it renders as plain text: (@username)
- Open EmbeddedChat connected to the same server.
- Observe the same message. Result: EmbeddedChat renders it as a mention tag: (
@username)
Expected behavior:
EmbeddedChat should match Rocket.Chat core behavior. Mentions inside parentheses should be treated as plain text or at least be consistent across clients.
Actual behavior:
The Mentions Sidebar (which lists all messages where the user is mentioned) correctly excludes these messages. This confirms that the server (Core) correctly identifies that (@username) is not a mention. The issue is strictly isolated to the client side rendering in the chat view of EmbeddedChat, which visually formats the text as a mention tag even though it is not treated as one by the system logic.
EmbeddedChat
Rocket.Chat
