Merge branch 'master' into queue

This commit is contained in:
Cassio Santos
2021-01-14 08:03:40 -03:00
committed by GitHub
6 changed files with 31 additions and 29 deletions

View File

@@ -239,11 +239,13 @@ const handleMessage = async (
groupContact = await verifyContact(msgGroupContact);
}
const unreadMessages = msg.fromMe ? 0 : chat.unreadCount;
const contact = await verifyContact(msgContact);
const ticket = await FindOrCreateTicketService(
contact,
wbot.id!,
chat.unreadCount,
unreadMessages,
groupContact
);