Skip to content

Commit

Permalink
Merge pull request #1125 from fmorett/patch-1
Browse files Browse the repository at this point in the history
fix cannot read null of mentioned
  • Loading branch information
DavidsonGomes authored Jan 6, 2025
2 parents 8c87702 + df0990d commit 6212ee3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,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 6212ee3

Please sign in to comment.