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

[Regression] React doesn't work on 0.66.0-rc3 when message already have any reaction #11274

Closed
rafaelks opened this issue Jun 27, 2018 · 1 comment

Comments

@rafaelks
Copy link
Contributor

Description:

We're using the REST API to react to any message from a long time now in both iOS and Android. For this release, the API stopped working (testing in open.rocket.chat).

Here's the request we do:

:method: POST
:scheme: https
:path: /api/v1/chat.react
:authority: open.rocket.chat
accept: */*
content-type: application/json
x-auth-token: (private)
accept-language: en-BR
content-length: 65
user-agent: RC Mobile; iOS 11.4; v3.0.0 (183)
x-user-id: (private)
accept-encoding: br, gzip, deflate

{
  "emoji" : ":thumbsup:",
  "messageId" : "3Xu26KJEjxtynjiA6"
}

:status: 200
access-control-allow-origin: *
cache-control: no-store
content-encoding: gzip
content-type: application/json
date: Wed, 27 Jun 2018 18:50:32 GMT
pragma: no-cache
vary: Accept-Encoding
x-instance-id: jabdw7SCzfMdBWtT5
content-length: 36

{"success":true}

Here's the message coming from the WebSocket (without the reaction):

{
  "emoji" : null,
  "_updatedAt" : {
    "$date" : 1530120292369
  },
  "editedAt" : null,
  "editedBy" : null,
  "reactions" : {
    ":no_mouth:" : {
      "usernames" : [
        "rafael.kellermann"
      ]
    }
  },
  "u" : {
    "name" : "Rafael Kellermann Streit",
    "username" : "rafael.kellermann",
    "_id" : "(private)"
  },
  "mentions" : [],
  "alias" : null,
  "ts" : {
    "$date" : 1530120286443
  },
  "attachments" : null,
  "_id" : "3Xu26KJEjxtynjiA6",
  "rid" : "tn3EiAYecbtXGEBDn",
  "channels" : [],
  "avatar" : null,
  "customFields" : null,
  "msg" : "..."
}
@rafaelks
Copy link
Contributor Author

Updating... happens on the web client too.

2018-06-27 16 06 30

@rafaelks rafaelks changed the title [Regression] chat.react doesn't work on 0.66.0-rc3 [Regression] React doesn't work on 0.66.0-rc3 when message already have any reaction Jun 27, 2018
@rodrigok rodrigok added this to the 0.66.0 milestone Jun 27, 2018
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