Skip to content

Commit

Permalink
fix(core.gbapp): New .gbot param HelloGoodX is added.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jan 5, 2021
1 parent b8b47c8 commit 3aed757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core.gbapp/dialogs/WelcomeDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'use strict';

import { BotAdapter } from 'botbuilder';
import {WaterfallDialog } from 'botbuilder-dialogs';
import { WaterfallDialog } from 'botbuilder-dialogs';
import { GBMinInstance, IGBDialog } from 'botlib';
import { GBServer } from '../../../src/app';
import { GBConversationalService } from '../services/GBConversationalService';
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3aed757

Please sign in to comment.