From 16abd7a76f676f7c8f9a7c4db72c2de21de55b14 Mon Sep 17 00:00:00 2001 From: Kevin Cooper Date: Tue, 22 Oct 2019 11:25:50 -0700 Subject: [PATCH] Switch to goToDialog works --- features/sample_hears.js | 3 ++- features/sample_hears2.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/features/sample_hears.js b/features/sample_hears.js index 516b45e..26a5e99 100644 --- a/features/sample_hears.js +++ b/features/sample_hears.js @@ -49,7 +49,7 @@ function initDialog(controller) { { pattern: /yes|yeah|ya|yep|y|right|correct/, handler: async (response, convo, bot) => { - await bot.beginDialog('ONBOARDING_DIALOG_2'); + await convo.gotoThread(CONCLUSION); }, }, { @@ -64,6 +64,7 @@ function initDialog(controller) { ); dialog.addMessage('onboarding.success', CONCLUSION); + dialog.addGotoDialog('ONBOARDING_DIALOG_2', CONCLUSION); controller.addDialog(dialog); } diff --git a/features/sample_hears2.js b/features/sample_hears2.js index e9f8880..9507d9e 100644 --- a/features/sample_hears2.js +++ b/features/sample_hears2.js @@ -49,7 +49,7 @@ function initDialog(controller) { { pattern: /yes|yeah|ya|yep|y|right|correct/, handler: async (response, convo, bot) => { - await bot.beginDialog('ONBOARDING_DIALOG'); + await convo.gotoThread(CONCLUSION); }, }, { @@ -64,6 +64,7 @@ function initDialog(controller) { ); dialog.addMessage('onboarding2.success', CONCLUSION); + dialog.addGotoDialog('ONBOARDING_DIALOG', CONCLUSION); controller.addDialog(dialog); }