Skip to content

Commit df0990d

Browse files
authored
fix cannot read null of mentioned
1 parent 1665654 commit df0990d

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
@@ -2121,7 +2121,7 @@ export class BaileysStartupService extends ChannelStartupService {
21212121

21222122
if (options?.mentionsEveryOne) {
21232123
mentions = group.participants.map((participant) => participant.id);
2124-
} else if (options.mentioned?.length) {
2124+
} else if (options?.mentioned?.length) {
21252125
mentions = options.mentioned.map((mention) => {
21262126
const jid = this.createJid(mention);
21272127
if (isJidGroup(jid)) {

0 commit comments

Comments
 (0)