mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
fix: only send auto reply if whatsapp has more then one queue
This commit is contained in:
@@ -255,7 +255,15 @@ const handleMessage = async (
|
||||
await verifyMessage(msg, ticket, contact);
|
||||
}
|
||||
|
||||
if (!ticket.queue && !chat.isGroup && !msg.fromMe && !ticket.userId) {
|
||||
const whatsapp = await ShowWhatsAppService(wbot.id!);
|
||||
|
||||
if (
|
||||
!ticket.queue &&
|
||||
!chat.isGroup &&
|
||||
!msg.fromMe &&
|
||||
!ticket.userId &&
|
||||
whatsapp.queues.length > 1
|
||||
) {
|
||||
await verifyQueue(wbot, msg, ticket, contact);
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user