fix(whatsapp.gblib): Fix PRIVACY_STORE_MESSAGES param.

This commit is contained in:
Rodrigo Rodriguez 2024-05-12 18:24:56 -03:00
parent 99b5b8ba8b
commit 7b802a9485

View file

@ -139,14 +139,14 @@ export class ProfileDialog extends IGBDialog {
step.activeDialog.state.options = step.options; step.activeDialog.state.options = step.options;
const locale = step.context.activity.locale; const locale = step.context.activity.locale;
const from = step.activeDialog.state.options.mobile.replace ('+', ''); const from = step.activeDialog.state.options.mobile.replace ('+', '');
if (min.whatsAppDirectLine) { return await step.replaceDialog('/profile_email', step.activeDialog.state.options);
await min.whatsAppDirectLine.sendToDevice( // DISABLED: sif (min.whatsAppDirectLine) {
from, // await min.whatsAppDirectLine.sendToDevice(
`${step.activeDialog.state.options.mobileCode} is your General Bots creation code.` // 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}.`); // } else {
} // }
await step.prompt('textPrompt', Messages[locale].confirm_mobile); await step.prompt('textPrompt', Messages[locale].confirm_mobile);
}, },