Skip to content

Commit

Permalink
fix(kb.gbapp): Dialog now are finished OK.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 25, 2023
1 parent 1857b51 commit a7a1d47
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/kb.gbapp/dialogs/AskDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ export class AskDialog extends IGBDialog {
if (step.options && step.options.firstTime) {
text = Messages[locale].ask_first_time;
}
//cut by Matheus Cavalieri (overnetbh)
//requested by PH
// else if (step.options && step.options.isReturning && !step.context.activity.group) {
// 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)) {
text = '';
} else if (user.subjects.length > 0) {
Expand Down Expand Up @@ -337,6 +335,7 @@ export class AskDialog extends IGBDialog {
const text = answer.content;
if (text.endsWith('.docx')) {
const mainName = GBVMService.getMethodNameFromVBSFilename(text);
await step.endDialog();
return await GBVMService.callVM(mainName, min, step, user, this.deployer, false);
} else {
await service.sendAnswer(min, AskDialog.getChannel(step), step, answer);
Expand Down

0 comments on commit a7a1d47

Please sign in to comment.