Skip to content

Commit

Permalink
fix(whatsapp.gblib): .gbapp message subprocessing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Sep 1, 2022
1 parent e9211d9 commit a5073e0
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 @@ -398,7 +398,7 @@ export class WhatsappDirectLine extends GBService {
// Processes .gbapp message interception.

await CollectionUtil.asyncForEach(this.min.appPackages, async (e: IGBPackage) => {
await e.onExchangeData(this.min, 'whatsappMessage', message);
await e.onExchangeData(this.min, 'whatsappMessage', req.body.messages ? req.body.messages[0] : message);
});

const sec = new SecService();
Expand Down

0 comments on commit a5073e0

Please sign in to comment.