Skip to content

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

@leonardoaramaki

Description

@leonardoaramaki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions