-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[BUG] RocketChat.MessageAction.getPermaLink returns wrong path #10746
Copy link
Copy link
Closed
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug
Milestone
Description
Description:
When clicking on Reply button on a broadcast channel the markdown permalink being created is incorrect. It's always referring to the message as if it was sent to a DM instead to a channel or group.
Tested on https://open.rocket.chat
Server Setup Information:
- Version of Rocket.Chat Server: 0.64.1
Steps to Reproduce:
- Join a broadcast channel and click on the Reply button.
- A DirectMessage is opened with the user being replied.
- The permalink to the replied message is always defined as
direct.
Eg.:[ ](https://open.rocket.chat/direct/user123?msg=xyz56789)
Expected behavior:
My broadcast room is either a channel or a group so the permalink should be built accordingly:
[ ](https://open.rocket.chat/channel/channelName?msg=xyz56789)
or
[ ](https://open.rocket.chat/group/groupName?msg=xyz56789)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug