mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
improvement: code cleanup
This commit is contained in:
@@ -15,6 +15,8 @@ const SetTicketMessagesAsRead = async (ticket: Ticket): Promise<void> => {
|
||||
}
|
||||
);
|
||||
|
||||
await ticket.update({ unreadMessages: 0 });
|
||||
|
||||
try {
|
||||
const wbot = await GetTicketWbot(ticket);
|
||||
wbot.sendSeen(`${ticket.contact.number}@${ticket.isGroup ? "g" : "c"}.us`);
|
||||
|
||||
Reference in New Issue
Block a user