From 7b802a9485e9a7b4be5467da3b3c2748e41194be Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 12 May 2024 18:24:56 -0300 Subject: [PATCH] fix(whatsapp.gblib): Fix PRIVACY_STORE_MESSAGES param. --- packages/security.gbapp/dialogs/ProfileDialog.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/security.gbapp/dialogs/ProfileDialog.ts b/packages/security.gbapp/dialogs/ProfileDialog.ts index 8d00d35c..31802d0d 100644 --- a/packages/security.gbapp/dialogs/ProfileDialog.ts +++ b/packages/security.gbapp/dialogs/ProfileDialog.ts @@ -139,14 +139,14 @@ export class ProfileDialog extends IGBDialog { step.activeDialog.state.options = step.options; const locale = step.context.activity.locale; const from = step.activeDialog.state.options.mobile.replace ('+', ''); - if (min.whatsAppDirectLine) { - await min.whatsAppDirectLine.sendToDevice( - from, - `${step.activeDialog.state.options.mobileCode} is your General Bots creation code.` - ); - } else { - GBLogEx.info(min, `WhatsApp not configured. Here is the code: ${step.activeDialog.state.options.mobileCode}.`); - } + return await step.replaceDialog('/profile_email', step.activeDialog.state.options); + // DISABLED: sif (min.whatsAppDirectLine) { + // await min.whatsAppDirectLine.sendToDevice( + // from, + // `${step.activeDialog.state.options.mobileCode} is your General Bots creation code.` + // ); + // } else { + // } await step.prompt('textPrompt', Messages[locale].confirm_mobile); },