fix(all): End of dialog now OK.

This commit is contained in:
Rodrigo Rodriguez 2021-03-30 16:21:30 -03:00
parent 6b1bc00e41
commit 9b785948cc

View file

@ -685,14 +685,8 @@ export class GBVMService extends GBService {
const promise = min.cbMap[id].promise; const promise = min.cbMap[id].promise;
delete min.cbMap[id]; delete min.cbMap[id];
try { try {
// if (step.activeDialog.state.options.previousResolve != undefined) {
// step.activeDialog.state.options.previousResolve();
// }
const opts = await promise(step, result); const opts = await promise(step, result);
return await step.replaceDialog('/hear', opts); return await step.endDialog();
} catch (error) { } catch (error) {
GBLog.error(`Error in BASIC code: ${error}`); GBLog.error(`Error in BASIC code: ${error}`);
const locale = step.context.activity.locale; const locale = step.context.activity.locale;