RocketChat / RocketChat/Rocket.Chat

When you send an image, the text of the previous message is also sent

Open
#26,442 2 comments 3 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:

When you send an image, the text of the previous message is also sent

Steps to reproduce:
  1. Write test in message box
  2. Switch to another chat
  3. Return to first chat
  4. Send message and fast insert image from clipboard (Bug: previous message showing in description)

https://user-images.githubusercontent.com/2384838/182373312-1e3c5833-c67f-4e96-a346-7ea9230c95d8.mp4

Expected behavior:

Image description is empty

Actual behavior:

Like on attached video. Text of previous message showing in image description. If you do not pay attention to this and do not delete it, then the text is sent again

Server Setup Information:
  • Version of Rocket.Chat Server: 5.0.0
  • Operating System: Ubuntu
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: wiredTiger (oplog Enabled)
  • NodeJS Version: 14.19.3
  • MongoDB Version: 5.0.6
Client Setup Information
  • Desktop App or Browser Version: WEB Chrome 103.0.5060.134
  • Operating System: Windows 10

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 web client using the listed steps: switch chats, return, and paste an image after entering text. Trace the message composer and image insertion flow; done means the image description is empty and the previous message text is not sent again.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.