lmarkus/hubot-conversation

Dialog needs cancel timeout function for error handling

Opened this issue · 3 comments

If there's a error in a conversation (e.g. my from external integration / API) we need a method to abort conversation and force the timeout so users don't have to wait 30 seconds for a follow up message (assuming the error triggered its own message).

p.s. Thanks for this awesome script.

My current workaround is to do dialog.dialogTimeout = null removing the response, but it doesn't actually cancel the timeout, which is still ticking and may cause conversation bugs if they try and start again when the last one is still active.

Makes sense.
Hopefully I can work on this in the next two weeks. I'm pretty much up to my ears at the moment :)

Thanks Lenny, no pressure.