Skip to content

Fix quick reply crash#10

Merged
davidrussell731 merged 2 commits intoShellMonkeys:masterfrom
rdzar:fix-quick-reply
Apr 25, 2017
Merged

Fix quick reply crash#10
davidrussell731 merged 2 commits intoShellMonkeys:masterfrom
rdzar:fix-quick-reply

Conversation

@rdzar
Copy link
Copy Markdown
Contributor

@rdzar rdzar commented Apr 24, 2017

As per readme, I tried to implement the quickReply but it crashed on a rather interesting error:

Error: validate.isString: missing parameter - argument to validate

It seemed the quickReply required an extra param, the payload to be defined. As I kinda liked the style that the readme went with; I just added a fallback. So it will use the payload when given and fallback to the title when not.

Hope you like it & nice work!

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 24, 2017

Coverage Status

Coverage remained the same at 95.957% when pulling e7f5ff2 on renedx:fix-quick-reply into 5a491b3 on ShellMonkeys:master.

Copy link
Copy Markdown
Collaborator

@davidrussell731 davidrussell731 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! This is how we using the library, so putting it in the constructor works for me!

@davidrussell731 davidrussell731 merged commit ba107d5 into ShellMonkeys:master Apr 25, 2017
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.

3 participants