diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index 6e1a8acc..9c619f58 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -1180,7 +1180,7 @@ export class DialogKeywords { url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName)); - GBLog.info(`BASIC: WebAutomation: Sending ${url} to mobile ${mobile}.`); + GBLog.info(`BASIC: WebAutomation: Sending ${url} to ${mobile} (${channel}).`); } // GBFILE object. @@ -1188,7 +1188,7 @@ export class DialogKeywords { url = filename.url; nameOnly = Path.basename(filename.localName); - GBLog.info(`BASIC: Sending the GBFILE ${url} to mobile ${mobile}.`); + GBLog.info(`BASIC: Sending the GBFILE ${url} to ${mobile} (${channel}).`); } // Handles Markdown. else if (filename.indexOf('.md') > -1) { diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index 31f5e0ad..9a66373e 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -908,8 +908,7 @@ export class GBMinService { const step = await min.dialogs.createContext(context); step.context.activity.locale = 'pt-BR'; - let firstTime = false; - + const member = context.activity.from; const sec = new SecService(); const user = await sec.ensureUser(instance.instanceId, member.id, member.name, '', 'web', member.name, null); @@ -937,9 +936,7 @@ export class GBMinService { await sec.setParam(userId, 'wholeWord', true); await sec.setParam(userId, 'theme', 'white'); await sec.setParam(userId, 'maxColumns', 40); - - firstTime = true; - + // This same event is dispatched either to all participants // including the bot, that is filtered bellow. @@ -949,7 +946,7 @@ export class GBMinService { // Stores conversation associated to the user to group each message. const analytics = new AnalyticsService(); - const conversation = await analytics.createConversation(user); + await analytics.createConversation(user); }