-
Notifications
You must be signed in to change notification settings - Fork 2.3k
FB require_delivery: Remove use of message.delivery.mids because not guaranteed #1312
Conversation
@cchan can you help me understand how to test this? |
@benbrown That's an interesting question; I'm not sure how testing works for botkit. Do you have mocks set up for Facebook? |
(oops) |
@benbrown Hm, could we create a sinon test similar to this existing one? I'm not familiar at all with how botkit works internally, but it seems like there's a polling loop that checks if the previous message has been marked as delivered before sending the next one. We could... somehow hook into that and make sure messages are returned back in order? |
@cchan my original comment probably confused the issue. what I need to know is what settings to enable and what type of events I need to trigger in order to see this fix in action. |
@benbrown Ah, that's what you mean. You just need to set I haven't been able to figure out what conditions cause Facebook to not provide (The reason I found this bug is that I have a bot on my server ( |
Hey is this going to be merged anytime soon? Great catch @cchan ;-) |
Awesome! :D |
@benbrown Thanks! |
Fixes #1311