diff --git a/src/js/components/PrivateMessage.tsx b/src/js/components/PrivateMessage.tsx index 73476d23..09f6d7a2 100644 --- a/src/js/components/PrivateMessage.tsx +++ b/src/js/components/PrivateMessage.tsx @@ -91,7 +91,7 @@ const PrivateMessage = (props) => { return (
diff --git a/src/js/views/chat/ChatMessages.tsx b/src/js/views/chat/ChatMessages.tsx index 3ab36a58..2c3e0896 100644 --- a/src/js/views/chat/ChatMessages.tsx +++ b/src/js/views/chat/ChatMessages.tsx @@ -119,7 +119,7 @@ function ChatMessages({ id }) { isDifferentDay = true; const separatorText = Helpers.getDaySeparatorText(date, dateStr, now, nowStr); msgListContent.push( -
+
{t(separatorText.toLowerCase())}
, ); @@ -127,12 +127,9 @@ function ChatMessages({ id }) { previousDateStr = dateStr; } - let showName = false; - if ( - msg.pubkey !== myPub && - (isDifferentDay || (previousFrom && msg.pubkey !== previousFrom)) - ) { - msgListContent.push(
); + let showName = isDifferentDay; + if (!isDifferentDay && previousFrom && msg.pubkey !== previousFrom) { + msgListContent.push(
); showName = true; } previousFrom = msg.pubkey;