mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
fix: setMessageAsRead not handling group contacts
This commit is contained in:
@@ -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?",
|
||||
|
||||
Reference in New Issue
Block a user