Add timestamp to title chat

This commit is contained in:
Ahmad Karlam 2020-10-01 16:11:43 +07:00
parent 6a0e8deae3
commit 334a69386d

View file

@ -13,7 +13,7 @@ export default class Message extends Component {
const { type } = message;
if (type === SOCKET_MESSAGE_TYPES.CHAT) {
const { image, author, body } = message;
const { image, author, body, timestamp } = message;
const formattedMessage = formatMessageText(body, username);
const avatar = image || generateAvatar(author);
@ -35,6 +35,7 @@ export default class Message extends Component {
</div>
<div
class="message-text text-gray-300 font-normal overflow-y-hidden"
title=${timestamp}
dangerouslySetInnerHTML=${
{ __html: formattedMessage }
}