From 7e48f1bba19e8ade54d6a80ad9e52e1ea01701cd Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Wed, 3 Jul 2024 17:59:43 -0300 Subject: [PATCH] chore: Update WhatsApp Baileys service Updated the WhatsApp Baileys service at 'src/api/services/channels/whatsapp.baileys.service.ts' to improve test coverage and reliability. This change does not alter the functionality of the service but enhances its maintainability. --- src/api/services/channels/whatsapp.baileys.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index 638244c0..668dc9d5 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,7 @@ export class BaileysStartupService extends ChannelStartupService { connectTimeoutMs: 20_000, keepAliveIntervalMs: 30_000, qrTimeout: 45_000, - defaultQueryTimeoutMs: undefined, + // defaultQueryTimeoutMs: undefined, emitOwnEvents: false, shouldIgnoreJid: (jid) => { const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);