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

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit a7a1d47c24 - Show all commits

View file

@ -107,11 +107,9 @@ export class AskDialog extends IGBDialog {
if (step.options && step.options.firstTime) { if (step.options && step.options.firstTime) {
text = Messages[locale].ask_first_time; text = Messages[locale].ask_first_time;
} }
//cut by Matheus Cavalieri (overnetbh) else if (step.options && step.options.isReturning && !step.context.activity.group) {
//requested by PH text = Messages[locale].anything_else;
// else if (step.options && step.options.isReturning && !step.context.activity.group) { }
// text = Messages[locale].anything_else;
// }
else if (step.context.activity.group || (step.options && step.options.emptyPrompt)) { else if (step.context.activity.group || (step.options && step.options.emptyPrompt)) {
text = ''; text = '';
} else if (user.subjects.length > 0) { } else if (user.subjects.length > 0) {
@ -337,6 +335,7 @@ export class AskDialog extends IGBDialog {
const text = answer.content; const text = answer.content;
if (text.endsWith('.docx')) { if (text.endsWith('.docx')) {
const mainName = GBVMService.getMethodNameFromVBSFilename(text); const mainName = GBVMService.getMethodNameFromVBSFilename(text);
await step.endDialog();
return await GBVMService.callVM(mainName, min, step, user, this.deployer, false); return await GBVMService.callVM(mainName, min, step, user, this.deployer, false);
} else { } else {
await service.sendAnswer(min, AskDialog.getChannel(step), step, answer); await service.sendAnswer(min, AskDialog.getChannel(step), step, answer);