From 968135733c17ff1ffb4adfd05d0ab73522a90a2b Mon Sep 17 00:00:00 2001 From: Edgard Date: Mon, 17 Oct 2022 17:26:20 -0300 Subject: [PATCH] fix: Fixed fetchLinkPreview function for WhatsApp >= 2.2240.5 --- src/whatsapp/functions/fetchLinkPreview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whatsapp/functions/fetchLinkPreview.ts b/src/whatsapp/functions/fetchLinkPreview.ts index 850f9418c2..572472da3e 100644 --- a/src/whatsapp/functions/fetchLinkPreview.ts +++ b/src/whatsapp/functions/fetchLinkPreview.ts @@ -47,7 +47,7 @@ exportModule( (m, id) => { const source: string = webpack.moduleSource(id); return ( - source.includes('.queryLinkPreview') && + source.includes('.genMinimalLinkPreview') && source.includes('.getProductOrCatalogLinkPreview') ); }