Skip to content

Commit

Permalink
fix cannot read null of mentioned
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorett authored Dec 28, 2024
1 parent 1665654 commit df0990d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit df0990d

Please sign in to comment.