From f5d0530d7a42e57e796b11e5e61d627df141f950 Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 9 Jun 2023 15:49:58 +1000 Subject: [PATCH] fix: account for misalignment of messages that are not last in a series in a 1o1 --- .../conversation/message/message-content/MessageAvatar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts/components/conversation/message/message-content/MessageAvatar.tsx b/ts/components/conversation/message/message-content/MessageAvatar.tsx index 8aea9c39d..349d59a93 100644 --- a/ts/components/conversation/message/message-content/MessageAvatar.tsx +++ b/ts/components/conversation/message/message-content/MessageAvatar.tsx @@ -119,6 +119,10 @@ export const MessageAvatar = (props: Props) => { ); }, [userName, sender, isPublic, authorAvatarPath, selectedConvoKey]); + if (isPrivate) { + return null; + } + if (!lastMessageOfSeries) { return
; } @@ -128,7 +132,6 @@ export const MessageAvatar = (props: Props) => { key={`msg-avatar-${sender}`} style={{ visibility: hideAvatar ? 'hidden' : undefined, - display: isPrivate && hideAvatar ? 'none' : undefined, }} >