mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
improvement: removed await from "sendSeen" method to improve performance
This commit is contained in:
@@ -16,10 +16,11 @@ const SetTicketMessagesAsRead = async (ticket: Ticket): Promise<void> => {
|
||||
|
||||
try {
|
||||
const wbot = await GetTicketWbot(ticket);
|
||||
await wbot.sendSeen(`${ticket.contact.number}@c.us`);
|
||||
wbot.sendSeen(`${ticket.contact.number}@c.us`);
|
||||
} catch (err) {
|
||||
console.log(
|
||||
"Could not mark messages as read. Maybe whatsapp session disconnected?"
|
||||
"Could not mark messages as read. Maybe whatsapp session disconnected?",
|
||||
err
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user