From 682c802113fe9f0a19749147d9023bd350a90270 Mon Sep 17 00:00:00 2001 From: Renato Alcara Date: Sun, 15 Feb 2026 22:07:40 -0300 Subject: [PATCH] fix: mark process.nextTick async callbacks with void operator Fixes @typescript-eslint/no-floating-promises error by explicitly marking fire-and-forget process.nextTick async callbacks with void. Co-Authored-By: Claude Opus 4.6 --- src/Socket/messages-send.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index 5bc36176..7bcba4ce 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -1869,7 +1869,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { // Emit own event for album root if configured if (config.emitOwnEvents) { - process.nextTick(async () => { + void process.nextTick(async () => { let mutexKey = albumRootMsg.key.remoteJid if (!mutexKey) { logger.warn( @@ -1975,7 +1975,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { // Emit own event if configured if (config.emitOwnEvents) { - process.nextTick(async () => { + void process.nextTick(async () => { let mutexKey = mediaMsg.key.remoteJid if (!mutexKey) { logger.warn({ msgId: mediaMsg.key.id }, 'Missing remoteJid in mediaMsg, using msg.key.id as fallback') @@ -2139,7 +2139,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { }) as WAMessage if (config.emitOwnEvents) { - process.nextTick(async () => { + void process.nextTick(async () => { const mutexKey = fullMsg.key.remoteJid || fullMsg.key.id || 'unknown' await messageMutex.mutex(mutexKey, () => upsertMessage(fullMsg, 'append')) }) @@ -2228,7 +2228,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { additionalNodes }) if (config.emitOwnEvents) { - process.nextTick(async () => { + void process.nextTick(async () => { let mutexKey = fullMsg.key.remoteJid if (!mutexKey) { logger.warn({ msgId: fullMsg.key.id }, 'Missing remoteJid in fullMsg, using msg.key.id as fallback')