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

Fix message handling in 3.8.0+ #127

Closed
wants to merge 3 commits into from
Closed

Conversation

suranc
Copy link

@suranc suranc commented Jan 12, 2021

Since Rocket.Chat 3.8.0 message handling has been broken by the hubot-rocketchat adapter, the example in the README as well as other adapters. Rather than returning a single message, the API now returns an array of messages which breaks the message handling functions in the SDK.

This PR contains the commit from @benwick in PR #126 with an additional fix to the reactToMessages function to also support an array of messages. With both of these fixes the example code in the README works, in addition to the hubot-rocketchat adapter. The PRs #121 and #126 still do not let the code from the README work as is, since it uses the reactToMessages function

It also contains the compiled code and a version bump in package.json. I was able to get tsc to compile after some version hunting. I skipped the unit tests as I was getting rate limited, they don't seem to pass in the newest version of Rocket.Chat as they stand. I can expand this change to address, but primarily trying to get a fix merged as this is impacting all of our bots.

@CLAassistant
Copy link

CLAassistant commented Jan 12, 2021

CLA assistant check
All committers have signed the CLA.

@archiekennedy
Copy link

Is this merge blocked by something?

Our ChatOps setup is completely broken. I'm willing to help out if there's anything I can do.

@suranc
Copy link
Author

suranc commented Feb 12, 2021

We have a large number of users broke by it too. It seems that the project is just slow to respond, I asked for an update on the issue #122

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

Successfully merging this pull request may close these issues.

None yet

4 participants