Skip to content

Commit

Permalink
fix(core.gbapp): Fix WhatsApp start bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 23, 2021
1 parent 5ba9df4 commit e799524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions packages/kb.gbapp/dialogs/AskDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e799524

Please sign in to comment.