fix(whatsapp.gblib): Fix in bot switching.

This commit is contained in:
Rodrigo Rodriguez 2023-09-03 16:46:40 -03:00
parent 99e6cbc742
commit 51caf5f575

View file

@ -108,8 +108,14 @@ export class AskDialog extends IGBDialog {
text = Messages[locale].ask_first_time;
} else if (step.options && step.options.isReturning && !step.context.activity.group) {
const askForMore = min.core.getParam(min.instance, 'Ask For More', null);
if (askForMore){
text = askForMore ;
}
else
{
text = askForMore ? Messages[locale].anything_else : '';
return await step.endDialog(null);
}
} else if (step.context.activity.group || (step.options && step.options.emptyPrompt)) {
return await step.next();
} else if (user.subjects.length > 0) {