From d9c0662736bb82ad2ed64cdcf55d0995dc648943 Mon Sep 17 00:00:00 2001 From: jrcleber Date: Mon, 2 Oct 2023 17:35:08 +0000 Subject: [PATCH] socketConfig --- src/whatsapp/services/whatsapp.service.ts | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index e976edeb..e78d8320 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -474,25 +474,7 @@ export class WAStartupService { generateHighQualityLinkPreview: true, syncFullHistory: true, userDevicesCache: this.userDevicesCache, - transactionOpts: { maxCommitRetries: 1, delayBetweenTriesMs: 10 }, - patchMessageBeforeSending: (message) => { - const requiresPatch = !!(message.buttonsMessage || message.listMessage); - if (requiresPatch) { - message = { - viewOnceMessageV2: { - message: { - messageContextInfo: { - deviceListMetadataVersion: 2, - deviceListMetadata: {}, - }, - ...message, - }, - }, - }; - } - - return message; - }, + transactionOpts: { maxCommitRetries: 3, delayBetweenTriesMs: 10 }, }; this.endSession = false;