Skip to content

Commit

Permalink
Undo message type change FIXES #1595
Browse files Browse the repository at this point in the history
  • Loading branch information
makstaks committed Feb 23, 2019
1 parent 2a71648 commit 0924274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SlackBot.js
Expand Up @@ -563,12 +563,12 @@ function Slackbot(configuration) {

if (message.trigger_id) {

// normalize fields to match the rtm message format
message.user = message.user.id;
message.channel = message.channel.id;

if (message.type == 'block_actions') {
message.text = message.actions[0].value;
message.type = 'block_actions_callback';
}
}

Expand Down

0 comments on commit 0924274

Please sign in to comment.