Skip to content

Commit

Permalink
[Bug] Put back subject is email right drawer (#5955)
Browse files Browse the repository at this point in the history
Fix #5903
  • Loading branch information
thomtrp authored and lucasbordeau committed Jun 19, 2024
1 parent a698488 commit 48a2ffd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const RightDrawerEmailThread = () => {
? visibleMessages.slice(2, visibleMessagesCount - 1)
: [];
const lastMessage = visibleMessages[visibleMessagesCount - 1];
const subject = visibleMessages[0]?.subject;

return (
<StyledContainer>
Expand All @@ -79,7 +80,7 @@ export const RightDrawerEmailThread = () => {
) : (
<>
<EmailThreadHeader
subject={thread.subject}
subject={subject}
lastMessageSentAt={lastMessage.receivedAt}
/>
{firstMessages.map((message) => (
Expand Down

0 comments on commit 48a2ffd

Please sign in to comment.