RocketChat / RocketChat/Rocket.Chat
Messages Posted through API calls don't reflect on the sender's end
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 a user sends a message through an API call, the receiver receives and sees the message but the sender doesn't see anything. It's like no communication took place from the senders perspective.
Steps to reproduce:
- Setup Rest API configuration,
- Follow the format according to the docs (here)[https://docs.rocket.chat/api/rest-api/methods/chat/postmessage] to post a message
- You should have something like this:
Endpoint - http://localhost:3000/api/v1/chat.postMessage?
-----
"channel": "@theUserToSend"
"text": "Message to send"
- Then make the post request
Expected behavior:
Expected to see that a message has been posted from me to them but I don't see anything.
Actual behavior:

No sign of any sent Message

But the receiver sees my message
Server Setup Information:
- Version of Rocket.Chat Server: 3.12.0-develop
- Operating System: Ubuntu
- Deployment Method: web
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: 12.18.4
- MongoDB Version:4.2.8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the documented chat.postMessage REST endpoint and compare the sender and receiver views. Trace the API message-posting flow and its sender-side update behavior; done means a message posted through the endpoint appears for both sender and receiver.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100