diff --git a/index.js b/index.js index 130fb49..a54c5bd 100644 --- a/index.js +++ b/index.js @@ -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`,