Skip to content

Commit 5320e68

Browse files
authored
Removido o contentMsg pois não irá precisar mais
retirada do const contentMsg = message?.message[contentType] as any; pois Não utiliza mais
1 parent 61884d8 commit 5320e68

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4251,9 +4251,7 @@ export class BaileysStartupService extends ChannelStartupService {
42514251

42524252
private prepareMessage(message: proto.IWebMessageInfo): any {
42534253
const contentType = getContentType(message.message);
4254-
const contentMsg = message?.message[contentType] as any;
42554254

4256-
// [ADD] Merge seguro de contextInfo
42574255
const mm = message.message as Record<string, any> | undefined;
42584256
const contentCtx =
42594257
contentType && mm && typeof mm[contentType] === 'object'
@@ -4278,7 +4276,6 @@ export class BaileysStartupService extends ChannelStartupService {
42784276
(message.key?.participant ? message.key.participant.split('@')[0] : null)),
42794277
status: status[message.status],
42804278
message: { ...message.message },
4281-
// [REPLACE] antes: contextInfo: contentMsg?.contextInfo,
42824279
contextInfo: contextInfoFinal,
42834280
messageType: contentType || 'unknown',
42844281
messageTimestamp: message.messageTimestamp as number,

0 commit comments

Comments
 (0)