Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Don't res.send view_submission events
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansydnor committed Oct 13, 2019
1 parent ddf92ed commit 9de879b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SlackBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function Slackbot(configuration) {
* we do NOT want to respond to incoming webhooks or slash commands
* as the response can be used by developers to actually deliver a reply
*/
if (!message.command && !message.trigger_word && !message.submission) {
if (!message.command && !message.trigger_word && !message.submission && message.type !== 'view_submission') {
res.send('');
}
}
Expand Down

0 comments on commit 9de879b

Please sign in to comment.