From ae4f7c52dff4f181a7ec72fd9821fd01647d9ac3 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 9 Sep 2023 21:36:00 -0300 Subject: [PATCH] fix(all): Fix user switching on a single chip. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;