From 3313549456842f0ae251895134e9640291fbacd3 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 9 May 2021 18:51:02 -0300 Subject: [PATCH] fix(whatsapp.gblib): Removal of trash in phone ID. --- 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 9601624f6..f8191e140 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -174,7 +174,7 @@ export class WhatsappDirectLine extends GBService { await e.onExchangeData(this.min, 'whatsappMessage', message); }); - const id = req.body.messages[0].chatId.split('@')[0]; + const id = req.body.messages[0].chatId.split('@')[0].replace('true_','').replace('false_',''); const senderName = req.body.messages[0].senderName; const sec = new SecService();