diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index f01e669a..893bf2a4 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -318,7 +318,7 @@ export class WhatsappDirectLine extends GBService { // If there is a number specified, checks if it // is related to a custom bot and reroutes immediately. - if (newThis && newThis.min.botId !== GBServer.globals.minBoot.botId) { + if (newThis !== this && newThis.min.botId !== GBServer.globals.minBoot.botId) { await newThis.received(req, res); return;