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')