From 9f8bab3a6b78b44742348711df972e5315911706 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 16 Oct 2018 10:19:34 -0300 Subject: [PATCH] Update WhatsappDirectLine.ts --- deploy/whatsapp.gblib/services/WhatsappDirectLine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts b/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts index 0ed4d10f..8d8f8c03 100644 --- a/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -202,8 +202,8 @@ export class WhatsappDirectLine extends GBService { if (activities && activities.length) { // Ignore own messages. - // TODO: this.botId instead of "general-bot-9672a8d3" - activities = activities.filter((m) => { return (m.from.id === "GeneralBots") && m.type === "message" }) + + activities = activities.filter((m) => { return (m.from.id === "GeneralBots") && m.type === "message" }) if (activities.length) { @@ -265,4 +265,4 @@ export class WhatsappDirectLine extends GBService { const result = await request.get(options) } -} \ No newline at end of file +}