Skip to content

Commit

Permalink
fix(whatsapp.gblib): Removal of trash in phone ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 9, 2021
1 parent 30cdef6 commit 819b593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 819b593

Please sign in to comment.