Browse Source

Do not set title text for users without data. Closes #1249

pull/1264/head
Gabe Kangas 4 years ago
parent
commit
f23a1202cc
  1. 4
      webroot/js/components/chat/chat-message-view.js

4
webroot/js/components/chat/chat-message-view.js

@ -48,9 +48,9 @@ export default class ChatMessageView extends Component { @@ -48,9 +48,9 @@ export default class ChatMessageView extends Component {
return null;
}
const formattedTimestamp = `Sent at ${formatTimestamp(timestamp)}`;
const userMetadata = `${displayName} first joined ${formatTimestamp(
const userMetadata = createdAt ? `${displayName} first joined ${formatTimestamp(
createdAt
)}`;
)}` : null;
const isSystemMessage = message.type === SOCKET_MESSAGE_TYPES.SYSTEM;

Loading…
Cancel
Save