From 5320e6865329671b31235d63551cb3eb194a39a3 Mon Sep 17 00:00:00 2001 From: MailoncBerni Date: Fri, 8 Aug 2025 22:11:01 -0300 Subject: [PATCH] =?UTF-8?q?Removido=20o=20contentMsg=20pois=20n=C3=A3o=20i?= =?UTF-8?q?r=C3=A1=20precisar=20mais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit retirada do const contentMsg = message?.message[contentType] as any; pois Não utiliza mais --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 905baed7..cf1ae0de 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -4251,9 +4251,7 @@ export class BaileysStartupService extends ChannelStartupService { private prepareMessage(message: proto.IWebMessageInfo): any { const contentType = getContentType(message.message); - const contentMsg = message?.message[contentType] as any; - // [ADD] Merge seguro de contextInfo const mm = message.message as Record | undefined; const contentCtx = contentType && mm && typeof mm[contentType] === 'object' @@ -4278,7 +4276,6 @@ export class BaileysStartupService extends ChannelStartupService { (message.key?.participant ? message.key.participant.split('@')[0] : null)), status: status[message.status], message: { ...message.message }, - // [REPLACE] antes: contextInfo: contentMsg?.contextInfo, contextInfo: contextInfoFinal, messageType: contentType || 'unknown', messageTimestamp: message.messageTimestamp as number,