mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
fix cannot read null of mentioned
This commit is contained in:
parent
1665654676
commit
df0990df0f
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user