mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 01:48:39 -06:00
fix: Fixed bug when send message when dont have mentionsEveryOne on payload
This commit is contained in:
parent
01ae55f02a
commit
fcfa96d97d
@ -1914,7 +1914,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
throw new NotFoundException('Group not found');
|
throw new NotFoundException('Group not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user