Skip to content

Commit fcfa96d

Browse files
committed
fix: Fixed bug when send message when dont have mentionsEveryOne on payload
1 parent 01ae55f commit fcfa96d

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
@@ -1914,7 +1914,7 @@ export class BaileysStartupService extends ChannelStartupService {
19141914
throw new NotFoundException('Group not found');
19151915
}
19161916

1917-
if (options.mentionsEveryOne) {
1917+
if (options?.mentionsEveryOne) {
19181918
mentions = group.participants.map((participant) => participant.id);
19191919
} else if (options.mentioned?.length) {
19201920
mentions = options.mentioned.map((mention) => {

0 commit comments

Comments
 (0)