Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Send a message when muted returns inconsistent result #10696

Closed
leonardoaramaki opened this issue May 7, 2018 · 0 comments
Closed

[BUG] Send a message when muted returns inconsistent result #10696

leonardoaramaki opened this issue May 7, 2018 · 0 comments
Milestone

Comments

@leonardoaramaki
Copy link

Description:

Server Setup Information:

  • Version of Rocket.Chat Server: 0.64.1

Steps to Reproduce:

  1. User is muted.
  2. Tries to send a message.
  3. The result returned is: {"message":false,"success":true}

This was tested on main public server open.rocket.chat using the REST endpoint:

/api/v1/chat.sendMessage

Maybe it helps to point out that on the realtime api the response is different: a["{\"msg\":\"result\",\"id\":\"25\",\"result\":false}"].

Expected behavior:

We should use a proper HTTP status code response. If it's not possible, I think we should at least get a consistent result such as an empty object, but not false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants