mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +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 {
|
try {
|
||||||
const wbot = await GetTicketWbot(ticket);
|
const wbot = await GetTicketWbot(ticket);
|
||||||
wbot.sendSeen(`${ticket.contact.number}@c.us`);
|
wbot.sendSeen(`${ticket.contact.number}@${ticket.isGroup ? "g" : "c"}.us`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(
|
console.log(
|
||||||
"Could not mark messages as read. Maybe whatsapp session disconnected?",
|
"Could not mark messages as read. Maybe whatsapp session disconnected?",
|
||||||
|
|||||||
Reference in New Issue
Block a user