-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add a type field to message to distinguish between 'message_received' and 'postback' #469
Conversation
Add a type field to message when sending to receiveMessage() with a different value when the message is received on 'message_received' and when it is received on 'postback'
See also PR #448 although the two are almost identical! I think that I like my approach of reusing |
I agree re-naming convention. Personally I have an aversion to fields that require a null check. From what I can tell receiveMessage() is only called twice - on |
This may be over-engineering at this point, but maybe they should both be string constants? |
I like to use string constants for stuff like this in my own projects, but it's not a common approach in JS land generally. |
So are we in agreement on the solution here? Do we still need two PRs? |
No, I've closed the other one, let's get this one merged 😀 |
Sounds good to me. Got any info on the frequency of merges here? |
Looking at the number of open PRs and issues, not high! But I'll mention it in the Slack channel. |
In the doc changes you have “ BTW talking with the Howdy guys now about getting some open PRs merged. |
@ianp changed. Good catch. |
This looks good to merge now. |
Thank you guys! Sorry it took longer than it should have. Merged!! |
Apropo to issue #447