Skip to content

Commit 6212ee3

Browse files
Merge pull request #1125 from fmorett/patch-1
fix cannot read null of mentioned
2 parents 8c87702 + df0990d commit 6212ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ export class BaileysStartupService extends ChannelStartupService {
21312131

21322132
if (options?.mentionsEveryOne) {
21332133
mentions = group.participants.map((participant) => participant.id);
2134-
} else if (options.mentioned?.length) {
2134+
} else if (options?.mentioned?.length) {
21352135
mentions = options.mentioned.map((mention) => {
21362136
const jid = this.createJid(mention);
21372137
if (isJidGroup(jid)) {

0 commit comments

Comments
 (0)