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;
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);
},