diff --git a/Dockerfile b/Dockerfile index 4a9b2c36..f2db602b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /evolution COPY ./package.json ./tsconfig.json ./ -RUN npm install --no-cache +RUN npm install COPY ./src ./src COPY ./public ./public @@ -39,7 +39,7 @@ WORKDIR /evolution COPY --from=builder /evolution/package.json ./package.json COPY --from=builder /evolution/package-lock.json ./package-lock.json -RUN npm install --omit=dev --no-cache +RUN npm install --omit=dev COPY --from=builder /evolution/dist ./dist COPY --from=builder /evolution/prisma ./prisma diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index 668dc9d5..e4fe38d7 100644 --- a/src/api/services/channels/whatsapp.baileys.service.ts +++ b/src/api/services/channels/whatsapp.baileys.service.ts @@ -592,7 +592,7 @@ export class BaileysStartupService extends ChannelStartupService { }, logger: P({ level: this.logBaileys }), printQRInTerminal: false, - // ...browserOptions, + ...browserOptions, version, markOnlineOnConnect: this.localSettings.alwaysOnline, retryRequestDelayMs: 350, @@ -601,7 +601,6 @@ export class BaileysStartupService extends ChannelStartupService { connectTimeoutMs: 20_000, keepAliveIntervalMs: 30_000, qrTimeout: 45_000, - // defaultQueryTimeoutMs: undefined, emitOwnEvents: false, shouldIgnoreJid: (jid) => { const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid); @@ -618,7 +617,7 @@ export class BaileysStartupService extends ChannelStartupService { return this.historySyncNotification(msg); }, userDevicesCache: this.userDevicesCache, - transactionOpts: { maxCommitRetries: 5, delayBetweenTriesMs: 2500 }, + transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 3000 }, patchMessageBeforeSending(message) { if ( message.deviceSentMessage?.message?.listMessage?.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST