diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 9601624f..f8191e14 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();