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

Aberta
#1,455 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@Vidit-001 já está trabalhando nisso.

Desde 22/11/2026.

  • #1456 de @Vidit-001 — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
30/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript, react
Domínio
frontend

Direção de pesquisa

The issue already has an open pull request (#1456), so check that first before starting anything. If you still need the map: find the React message toolbox action that builds the copied URL, and compare how it derives the room name against the rooms.info shapes for public channels, private channels and DMs. Done when a private room yields /group/<name>/?msg=<id> and a nameless DM yields /direct/<rid>/?msg=<id>.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
JavaScript
Estrelas
171
Forks
421
Merge médio
3d 6h
PRs com merge (30d)
4

Preparar o ambiente

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de RocketChat/EmbeddedChat

Todas as issues de RocketChat/EmbeddedChat

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.