From bc41a8c18c57b8fe8d6e7836ac4c006aa7130b21 Mon Sep 17 00:00:00 2001 From: Jorge Ramos Date: Sun, 19 Aug 2018 05:56:38 -0300 Subject: [PATCH] Whatsapp test changed to all netshoes bots --- deploy/whatsapp.gblib/services/WhatsappDirectLine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts b/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts index 44583d2e..18c2d72a 100644 --- a/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -204,7 +204,8 @@ export class WhatsappDirectLine extends GBService { // Ignore own messages. // TODO: this.botId instead of "general-bot-9672a8d3" - activities = activities.filter((m) => { return (m.from.id === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" }); + activities = activities.filter((m) => { + return (m.from.id.substr(0, 19) === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" }); if (activities.length) {