RocketChat / RocketChat/Rocket.Chat

Messages Posted through API calls don't reflect on the sender's end

Open
#20,906 4 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:

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:
  1. Setup Rest API configuration,
  2. Follow the format according to the docs (here)[https://docs.rocket.chat/api/rest-api/methods/chat/postmessage] to post a message
  3. You should have something like this:
Endpoint - http://localhost:3000/api/v1/chat.postMessage?
-----
"channel": "@theUserToSend"
"text": "Message to send"
  1. 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:

image
No sign of any sent Message

image
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.