Compare commits
1 commit
main
...
chat-times
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa931f35b2 |
2 changed files with 5 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ query getTicketArticles($ticketId: ID!) {
|
|||
emailAddress
|
||||
}
|
||||
}
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue