Skip to content

Commit

Permalink
ignore newsletters
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jun 14, 2024
1 parent 4bd8ca1 commit c24b523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/libs/wbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const initWASocket = async (whatsapp: Whatsapp): Promise<Session> => {
syncFullHistory: true,
generateHighQualityLinkPreview: true,
userDevicesCache,
shouldIgnoreJid: jid => isJidBroadcast(jid),
shouldIgnoreJid: jid => isJidBroadcast(jid) || jid?.endsWith("@newsletter"),
transactionOpts: { maxCommitRetries: 1, delayBetweenTriesMs: 10 },
});

Expand Down

0 comments on commit c24b523

Please sign in to comment.