From c24b523fdbae2ece891998c53e12477359f3a63a Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Fri, 14 Jun 2024 09:30:54 -0300 Subject: [PATCH] ignore newsletters --- backend/src/libs/wbot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/libs/wbot.ts b/backend/src/libs/wbot.ts index 3bd9c119..70bda092 100644 --- a/backend/src/libs/wbot.ts +++ b/backend/src/libs/wbot.ts @@ -110,7 +110,7 @@ export const initWASocket = async (whatsapp: Whatsapp): Promise => { syncFullHistory: true, generateHighQualityLinkPreview: true, userDevicesCache, - shouldIgnoreJid: jid => isJidBroadcast(jid), + shouldIgnoreJid: jid => isJidBroadcast(jid) || jid?.endsWith("@newsletter"), transactionOpts: { maxCommitRetries: 1, delayBetweenTriesMs: 10 }, });