From e031d1ed45083410f8fcf211367815f0dc2198c9 Mon Sep 17 00:00:00 2001 From: Jarvis Maintenance Date: Sun, 9 Aug 2026 09:15:40 -0600 Subject: [PATCH] fix: reuse cached group metadata before sends --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 60e857fcc1..ea953ec85e 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -3531,7 +3531,9 @@ export class BaileysStartupService extends ChannelStartupService { // GROUPS const groups = await Promise.all( jids.groups.map(async ({ jid, number }) => { - const group = await this.findGroup({ groupJid: jid }, 'inner'); + // Reuse the same metadata cache used by the send path. A fresh + // groupMetadata request here added a redundant WhatsApp round-trip. + const group = await this.getGroupMetadataCache(jid); if (!group) { return new OnWhatsAppDto(jid, false, number);