Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty string to be passed as message text for Slack Incoming Webhooks; disallow null #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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