Skip to content

Commit

Permalink
Mark messages as read only when accepting ticket - fix #260
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Dec 27, 2024
1 parent d2927bb commit c138fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/TicketServices/UpdateTicketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const UpdateTicketService = async ({
whatsappId: ticket.whatsappId
});

if (ticket.channel === "whatsapp") {
if (ticket.channel === "whatsapp" && status === "open") {
SetTicketMessagesAsRead(ticket);
}

Expand Down

0 comments on commit c138fdd

Please sign in to comment.