fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
3 changed files with 4 additions and 1 deletions
Showing only changes of commit db07689520 - Show all commits

View file

@ -38,7 +38,7 @@
import { BotAdapter } from 'botbuilder';
import { WaterfallDialog } from 'botbuilder-dialogs';
import { GBMinInstance, IGBDialog } from 'botlib';
import { GBLog, GBMinInstance, IGBDialog } from 'botlib';
import { GBServer } from '../../../src/app';
import { GBConversationalService } from '../services/GBConversationalService';
import { Messages } from '../strings';
@ -97,6 +97,7 @@ export class WelcomeDialog extends IGBDialog {
step.context.activity.type === 'message' &&
step.context.activity.text !== ''
) {
GBLog.info(`/answer being called from WelcomeDialog.`);
await step.replaceDialog('/answer', { query: step.context.activity.text });
}
}

View file

@ -1258,6 +1258,7 @@ export class GBMinService {
nextDialog = await e.onExchangeData(min, 'handleAnswer', data);
});
data.step = null;
GBLog.info(`/answer being called from processMessageActivity.`);
await step.beginDialog(nextDialog ? nextDialog : '/answer', {
data: data,
query: text,

View file

@ -139,6 +139,7 @@ export class AskDialog extends IGBDialog {
}
});
data.step = null;
GBLog.info(`/answer being called from getAskDialog.`);
await step.beginDialog(nextDialog ? nextDialog : '/answer', {
data: data,
query: text,