From 2162b060ba0fe191b9fd9fadff3f88f97eb0b4be 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 f01e669a0..893bf2a4b 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;