Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
N-Pex
fa931f35b2 Add timestamps to ticket chat bubbles 2024-10-08 10:34:00 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -109,13 +109,15 @@ export const TicketDetail: FC<TicketDetailProps> = ({ id }) => {
}
model={{
message: article.bodyWithUrls,
sentTime: article.updated_at,
sentTime: article.updatedAt,
sender: article.from,
direction:
article.sender === "Agent" ? "outgoing" : "incoming",
position: "single",
}}
/>
>
<Message.Header sender={article.sender?.name} sentTime={new Date(article.updatedAt).toLocaleString()} />
</Message>
))}
</MessageList>
</ChatContainer>

View file

@ -19,6 +19,7 @@ query getTicketArticles($ticketId: ID!) {
emailAddress
}
}
updatedAt
}
}
}