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

This commit is contained in:
Gabe Kangas
2021-07-25 22:41:15 -07:00
parent 9b7926963f
commit f23a1202cc

View File

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