Skip to content

Conversation

@savethefails
Copy link

Slack allows an empty string to be passed as the text parameter to an incoming webhook, but in Slack.prototype.send the code if (!message.text) evaluates to true if message.text == '' and so no request is made. The pull request changes the conditional to check that the message text isn't null instead of casting an empty string into a boolean.

@savethefails
Copy link
Author

Hi @benbrown. Wondering if you can pull this in?

@savethefails
Copy link
Author

@geekmuse that was unexpected!

@geekmuse
Copy link

Totally unintentional! Sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants