fix cannot read null of mentioned

This commit is contained in:
Fabio Moretti 2024-12-28 02:15:26 +01:00 committed by GitHub
parent 1665654676
commit df0990df0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2121,7 +2121,7 @@ export class BaileysStartupService extends ChannelStartupService {
if (options?.mentionsEveryOne) { if (options?.mentionsEveryOne) {
mentions = group.participants.map((participant) => participant.id); mentions = group.participants.map((participant) => participant.id);
} else if (options.mentioned?.length) { } else if (options?.mentioned?.length) {
mentions = options.mentioned.map((mention) => { mentions = options.mentioned.map((mention) => {
const jid = this.createJid(mention); const jid = this.createJid(mention);
if (isJidGroup(jid)) { if (isJidGroup(jid)) {