Skip to content

Commit d9c0662

Browse files
committed
socketConfig
1 parent 59f0477 commit d9c0662

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -474,25 +474,7 @@ export class WAStartupService {
474474
generateHighQualityLinkPreview: true,
475475
syncFullHistory: true,
476476
userDevicesCache: this.userDevicesCache,
477-
transactionOpts: { maxCommitRetries: 1, delayBetweenTriesMs: 10 },
478-
patchMessageBeforeSending: (message) => {
479-
const requiresPatch = !!(message.buttonsMessage || message.listMessage);
480-
if (requiresPatch) {
481-
message = {
482-
viewOnceMessageV2: {
483-
message: {
484-
messageContextInfo: {
485-
deviceListMetadataVersion: 2,
486-
deviceListMetadata: {},
487-
},
488-
...message,
489-
},
490-
},
491-
};
492-
}
493-
494-
return message;
495-
},
477+
transactionOpts: { maxCommitRetries: 3, delayBetweenTriesMs: 10 },
496478
};
497479

498480
this.endSession = false;

0 commit comments

Comments
 (0)