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 +}