improvement: stop auto reply if ticket is assigned to user

This commit is contained in:
canove
2021-01-13 20:10:36 -03:00
parent d8605f04b8
commit c443f13fe8

View File

@@ -253,7 +253,7 @@ const handleMessage = async (
await verifyMessage(msg, ticket, contact); await verifyMessage(msg, ticket, contact);
} }
if (!ticket.queue && !chat.isGroup && !msg.fromMe) { if (!ticket.queue && !chat.isGroup && !msg.fromMe && !ticket.userId) {
await verifyQueue(wbot, msg, ticket, contact); await verifyQueue(wbot, msg, ticket, contact);
} }
} catch (err) { } catch (err) {