Skip to content

Commit

Permalink
rocketchat: fix reactToMessages callback
Browse files Browse the repository at this point in the history
rocketchat is dumb and sends an array of one message since version 3.8.0.
see RocketChat/Rocket.Chat#20801
this is scheduled to be fixed in version 3.12.0
  • Loading branch information
jsundahl committed Jul 20, 2021
1 parent 33344ff commit 5f147b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function RocketChat(skyfall) {
source: id
});

return driver.reactToMessages((error, message) => {
return driver.reactToMessages((error, messages) => {
message = messages[0]
if (error) {
skyfall.events.emit({
type: `rocketchat:${ name }:error`,
Expand Down

0 comments on commit 5f147b4

Please sign in to comment.