mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
fix: unread messages count no working when fast reply
This commit is contained in:
@@ -42,6 +42,8 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
|
||||
|
||||
const ticket = await ShowTicketService(ticketId);
|
||||
|
||||
await SetTicketMessagesAsRead(ticket);
|
||||
|
||||
if (medias) {
|
||||
await Promise.all(
|
||||
medias.map(async (media: Express.Multer.File) => {
|
||||
@@ -52,8 +54,6 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
|
||||
await SendWhatsAppMessage({ body, ticket, quotedMsg });
|
||||
}
|
||||
|
||||
await SetTicketMessagesAsRead(ticket);
|
||||
|
||||
return res.send();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user