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

Offen
#1,455 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Vidit-001 arbeitet bereits daran.

Seit 22.11.2026.

  • #1456 von @Vidit-001 — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react
Bereich
frontend

Rechercherichtung

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

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
JavaScript
Sterne
171
Forks
421
Ø Merge
3 T. 6 Std.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus RocketChat/EmbeddedChat

Alle Issues in RocketChat/EmbeddedChat

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.