diff --git a/frontend/src/components/NotificationsPopOver/index.js b/frontend/src/components/NotificationsPopOver/index.js index 467ec89..5c93557 100644 --- a/frontend/src/components/NotificationsPopOver/index.js +++ b/frontend/src/components/NotificationsPopOver/index.js @@ -178,8 +178,10 @@ const NotificationsPopOver = (props) => { const handleNotifications = (data) => { const { message, contact, ticket } = data; + const body = message.body.startsWith('{"ticketzvCard"') ? "🪪" : message.body; + const options = { - body: `${message.body} - ${format(new Date(), "HH:mm")}`, + body: `${format(new Date(), "HH:mm")}\n${body}`, icon: contact.profilePicUrl, tag: ticket.id, renotify: true, diff --git a/frontend/src/components/TicketListItem/index.js b/frontend/src/components/TicketListItem/index.js index aaf3cbe..5549dc7 100644 --- a/frontend/src/components/TicketListItem/index.js +++ b/frontend/src/components/TicketListItem/index.js @@ -208,7 +208,11 @@ const TicketListItem = ({ ticket, groupActionButtons }) => { color="textSecondary" > {ticket.lastMessage ? ( - {ticket.lastMessage} + + { + ticket.lastMessage.startsWith('{"ticketzvCard"') ? "🪪" : ticket.lastMessage + } + ) : (
)}