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;