Prettified Code!

This commit is contained in:
gabek 2021-07-26 05:41:48 +00:00 committed by GitHub Action
parent f23a1202cc
commit 8c5f7be05c

View file

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