Skip to content

Commit

Permalink
Merge pull request slackapi#56 from mcolyer/fix-slack-actions
Browse files Browse the repository at this point in the history
Support validation of message_action
  • Loading branch information
Shane DeWael authored and aoberoi committed Mar 20, 2019
1 parent 4228b27 commit de5cb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node-slack-interactive-messages/src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ class SlackMessageAdapter {

// if the action constraint is specified, only continue if it matches
if (constraints.handlerType === 'action') {
// a payload that represents an action either has actions or submission defined
if (!(payload.actions || payload.submission)) {
// a payload that represents an action either has actions, submission, or message defined
if (!(payload.actions || payload.submission || payload.message)) {
return false;
}

Expand Down

0 comments on commit de5cb7d

Please sign in to comment.