From df0990df0f30fbb0914aad20b2d2924d70648dda Mon Sep 17 00:00:00 2001 From: Fabio Moretti Date: Sat, 28 Dec 2024 02:15:26 +0100 Subject: [PATCH] fix cannot read null of mentioned --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 2 +- 1 file changed, 1 insertion(+), 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 0afd5318a..9ab9a3fd9 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -2121,7 +2121,7 @@ export class BaileysStartupService extends ChannelStartupService { if (options?.mentionsEveryOne) { mentions = group.participants.map((participant) => participant.id); - } else if (options.mentioned?.length) { + } else if (options?.mentioned?.length) { mentions = options.mentioned.map((mention) => { const jid = this.createJid(mention); if (isJidGroup(jid)) {