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

Abierto
#1,455 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Vidit-001 ya está trabajando en esto.

Desde el 22/11/2026.

  • #1456 de @Vidit-001 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, react
Área
frontend

Línea de trabajo

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>.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
171
Forks
421
Merge medio
3 d 6 h
PR fusionados (30 d)
4

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RocketChat/EmbeddedChat

Todos los issues de RocketChat/EmbeddedChat

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.