diff --git a/src/containers/Ticket/TicketList/TicketList.tsx b/src/containers/Ticket/TicketList/TicketList.tsx index 197703d2c..2e37e41c5 100644 --- a/src/containers/Ticket/TicketList/TicketList.tsx +++ b/src/containers/Ticket/TicketList/TicketList.tsx @@ -119,8 +119,12 @@ export const TicketList = () => { { icon: , parameter: 'contact', - dialog: (contact: any) => { - window.open(`chat/${contact.id}`); + dialog: (contact: any, item: any) => { + if (item.messageNumber) { + window.open(`chat/${contact.id}?search=${item.messageNumber}`); + } else { + window.open(`chat/${contact.id}`); + } }, label: t('Send Message'), }, diff --git a/src/graphql/queries/Ticket.ts b/src/graphql/queries/Ticket.ts index 4b1dc3963..429aad38f 100644 --- a/src/graphql/queries/Ticket.ts +++ b/src/graphql/queries/Ticket.ts @@ -14,6 +14,7 @@ export const TICKET_LIST_QUERY = gql` status topic updatedAt + messageNumber user { id name