mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 01:48:39 -06:00
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.
This commit is contained in:
parent
aab62e4b03
commit
7e48f1bba1
@ -592,7 +592,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
},
|
},
|
||||||
logger: P({ level: this.logBaileys }),
|
logger: P({ level: this.logBaileys }),
|
||||||
printQRInTerminal: false,
|
printQRInTerminal: false,
|
||||||
...browserOptions,
|
// ...browserOptions,
|
||||||
version,
|
version,
|
||||||
markOnlineOnConnect: this.localSettings.alwaysOnline,
|
markOnlineOnConnect: this.localSettings.alwaysOnline,
|
||||||
retryRequestDelayMs: 350,
|
retryRequestDelayMs: 350,
|
||||||
@ -601,7 +601,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
connectTimeoutMs: 20_000,
|
connectTimeoutMs: 20_000,
|
||||||
keepAliveIntervalMs: 30_000,
|
keepAliveIntervalMs: 30_000,
|
||||||
qrTimeout: 45_000,
|
qrTimeout: 45_000,
|
||||||
defaultQueryTimeoutMs: undefined,
|
// defaultQueryTimeoutMs: undefined,
|
||||||
emitOwnEvents: false,
|
emitOwnEvents: false,
|
||||||
shouldIgnoreJid: (jid) => {
|
shouldIgnoreJid: (jid) => {
|
||||||
const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);
|
const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);
|
||||||
|
Loading…
Reference in New Issue
Block a user