fix(core.gbapp): New .gbot param HelloGoodX is added.

This commit is contained in:
Rodrigo Rodriguez 2021-01-05 12:28:40 -03:00
parent b8b47c8238
commit 3aed75731e

View file

@ -67,7 +67,8 @@ export class WelcomeDialog extends IGBDialog {
const user = await min.userProfile.get(step.context, {});
const locale = step.context.activity.locale;
if (!user.once && step.context.activity.channelId === 'webchat') {
if (!user.once && step.context.activity.channelId === 'webchat'
&& min.core.getParam<boolean>(min.instance, 'HelloGoodX', true) === "true") {
user.once = true;
await min.userProfile.set(step.context, user);
const a = new Date();