Skip to content

Commit 312cdea

Browse files
committed
fix: Fixed bug when send message when dont have mentionsEveryOne on payload
1 parent 1148180 commit 312cdea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ export class BaileysStartupService extends ChannelStartupService {
15861586
throw new NotFoundException('Group not found');
15871587
}
15881588

1589-
if (options.mentionsEveryOne) {
1589+
if (options?.mentionsEveryOne) {
15901590
mentions = group.participants.map((participant) => participant.id);
15911591
} else if (options.mentioned?.length) {
15921592
mentions = options.mentioned.map((mention) => {

0 commit comments

Comments
 (0)