Skip to content

Commit

Permalink
fix(core.gbapp): startDialog for web OK now.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 6, 2020
1 parent 94c1235 commit 6b325ea
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,19 +671,16 @@ export class GBMinService {
await e.onNewSession(min, step);
});

await step.beginDialog('/');

} else {
const startDialog = min.core.getParam(min.instance, 'Start Dialog', null);
if (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}`);
}

Expand Down

0 comments on commit 6b325ea

Please sign in to comment.