From 334a69386d54da3505b5e725c44559c5f4303f53 Mon Sep 17 00:00:00 2001 From: Ahmad Karlam Date: Thu, 1 Oct 2020 16:11:43 +0700 Subject: [PATCH] Add timestamp to title chat --- webroot/js/components/chat/message.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webroot/js/components/chat/message.js b/webroot/js/components/chat/message.js index e208a72dd..3fa246bcf 100644 --- a/webroot/js/components/chat/message.js +++ b/webroot/js/components/chat/message.js @@ -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 {