fbsamples / original-coast-clothing

Sample Messenger App - Original Coast Clothing
https://fb.me/get-sample-oc
Other
202 stars 234 forks source link

Improve variables consistency and messenger entrypoint comment in Receive. #55

Closed aug2uag closed 3 years ago

aug2uag commented 4 years ago

In services/receive.js, the handleTextMessage function handles the messenger input with a default handler. The variables of this function are not declared, and also in the default handler the message variable is unused.

The consistency of the variables should be defined with an event variable as handleMessage does. It would also benefit to have a comment to know where the default handler is for the messenger event.

Barbog commented 3 years ago

Thanks for the suggestions, aug2uag. We've added those suggestions to the code.