Skip to content

Commit

Permalink
fix(channel-web): verify if its a channel-web msg
Browse files Browse the repository at this point in the history
even if message is for a different channel this hook will change the default quick_reply structure and affecting other channels (messenger)
  • Loading branch information
mrbarletta committed Apr 21, 2019
1 parent 35658c1 commit a07d67b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,6 +1,6 @@
const _ = require('lodash')

if (event.payload.quick_replies) {
if (event.payload.quick_replies && event.channel == 'channel-web') {
event.payload = {
type: 'custom',
module: 'channel-web',
Expand Down

0 comments on commit a07d67b

Please sign in to comment.