fix(core.gbapp): Fix WhatsApp start bug.

This commit is contained in:
Rodrigo Rodriguez 2021-05-23 10:43:39 -03:00
parent 5ba9df4e5f
commit e799524546
2 changed files with 3 additions and 3 deletions

View file

@ -345,7 +345,7 @@ export class GBMinService {
GBLog.info(`Auto start dialog is now being called: ${startDialog}...`);
if (startDialog) {
req.body.messages[0].body = `${startDialog}`;
req.body.messages[0].body = `/call ${startDialog}`;
await (activeMin as any).whatsAppDirectLine.received(req, res);
} else {
await (activeMin as any).whatsAppDirectLine.sendToDevice(

View file

@ -95,12 +95,12 @@ export class AskDialog extends IGBDialog {
if (!user.subjects) {
user.subjects = [];
}
let text;
let text: string;
// Three forms of asking.
if (step.options && step.options.firstTime) {
text = Messages[locale].ask_first_time;
} else if (step.options && step.options.isReturning) {
text = Messages[locale].anything_else;
text = ""; // REMOVED: Messages[locale].anything_else;
} else if (step.options && step.options.emptyPrompt) {
text = "";
} else if (user.subjects.length > 0) {