fix(kb.gbapp): Dialog now are finished OK.
This commit is contained in:
parent
1857b51cf2
commit
a7a1d47c24
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue