fix: setMessageAsRead not handling group contacts

This commit is contained in:
canove
2020-10-17 11:50:34 -03:00
parent d7d953d812
commit a0c807301e

View File

@@ -16,7 +16,7 @@ const SetTicketMessagesAsRead = async (ticket: Ticket): Promise<void> => {
try {
const wbot = await GetTicketWbot(ticket);
wbot.sendSeen(`${ticket.contact.number}@c.us`);
wbot.sendSeen(`${ticket.contact.number}@${ticket.isGroup ? "g" : "c"}.us`);
} catch (err) {
console.log(
"Could not mark messages as read. Maybe whatsapp session disconnected?",