From f95d34a1dac1e98a6ae2f6d42a6770078c37188a Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Sun, 28 Jul 2024 19:54:45 -0300 Subject: [PATCH] chore: Update WhatsApp Business service to stop processing read messages from non-broadcast and non-me jids Modifies the WhatsApp Business service to skip processing read messages from non-broadcast and non-me jids, improving performance and reducing unnecessary computations. Affects src/api/services/channels/whatsapp.business.service.ts. --- src/api/services/channels/whatsapp.business.service.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/api/services/channels/whatsapp.business.service.ts b/src/api/services/channels/whatsapp.business.service.ts index ac9de240..673a2761 100644 --- a/src/api/services/channels/whatsapp.business.service.ts +++ b/src/api/services/channels/whatsapp.business.service.ts @@ -491,8 +491,6 @@ export class BusinessStartupService extends ChannelStartupService { return; } if (key.remoteJid !== 'status@broadcast' && !key?.remoteJid?.match(/(:\d+)/)) { - if (item.status === 'read' && !key.fromMe) return; - const findMessage = await this.prismaRepository.message.findFirst({ where: { instanceId: this.instanceId,