Skip to content

Copy Message Link uses the public channel route for private rooms and DMs #1455

Open

Description

@Vidit-001

Description

The React message toolbox builds every copied message link under /channel/<name>. Rocket.Chat uses /group/<name> for private channels and /direct/<rid> for direct messages. DM room records can omit the name.

Steps to reproduce

  1. Open EmbeddedChat in a private channel using an account that can access the room.
  2. Open a message’s toolbox and select Copy Message Link.
  3. Paste the URL into a browser signed in to the workspace. Repeat with a direct message room if configured in the embed.

Expected behavior

The link uses the room’s route and includes the msg query parameter so Rocket.Chat can jump to the message.

Actual behavior

A private channel named team produces /channel/team/?msg=<id>. A DM room with no name produces /channel/undefined/?msg=<id>. I reproduced both outputs by running the copy handler with the corresponding rooms.info response shapes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions