Skip to content

Commit

Permalink
socketConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Oct 2, 2023
1 parent 59f0477 commit d9c0662
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/whatsapp/services/whatsapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9c0662

Please sign in to comment.