RocketChat / RocketChat/Rocket.Chat

Slash commands do not work when quoting messages

Open
#30,779 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Although suggested while typing, slash commands like /me, /tableflip etc. will not work when quoting a message.

Steps to reproduce:
  1. Write a message.
  2. Write a second message quoting the first one. Start the message text with a slash command like /me, /tableflip etc.
Expected behavior:

The slash command will do what it is supposed to do.

Actual behavior:

The slash command does not work.

image

Server Setup Information:
  • Version of Rocket.Chat Server: 6.4.3
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • MongoDB Version: 6.0.11
Client Setup Information
  • Browser Version: Chromium Version 118.0.5993.117 (Offizieller Build) Arch Linux (64-Bit)
  • Operating System: Arch Linux

However, I expect this issue to be client-agnostic.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the message composer by quoting a message and starting the text with /me or /tableflip. Then trace the client-side handling of quoted messages and slash commands; done means the command executes normally when the message also contains a quote.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.