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 authored and mdbarr committed Jul 20, 2021
1 parent 1781801 commit dd457fc
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 @@ -77,7 +77,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 dd457fc

Please sign in to comment.