fix(core.gbapp): startDialog for web OK now.

This commit is contained in:
Rodrigo Rodriguez 2020-12-06 16:46:53 -03:00
parent 94c1235866
commit 6b325ead34

View file

@ -671,19 +671,16 @@ export class GBMinService {
await e.onNewSession(min, step); await e.onNewSession(min, step);
}); });
await step.beginDialog('/');
} else {
const startDialog = min.core.getParam(min.instance, 'Start Dialog', null); const startDialog = min.core.getParam(min.instance, 'Start Dialog', null);
if (startDialog) if (startDialog)
{ {
GBLog.info(`Auto start dialog is now being called: ${startDialog}...`); GBLog.info(`Auto start dialog is now being called: ${startDialog}...`);
await GBVMService.callVM(context.activity.text, min, step, this.deployer); await GBVMService.callVM(startDialog.toLowerCase(), min, step, this.deployer);
}
else
{
await step.beginDialog('/');
} }
} else {
GBLog.info(`Member added to conversation: ${member.name}`); GBLog.info(`Member added to conversation: ${member.name}`);
} }