Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add timestamp to title chat

Ahmad Karlam94a94b72b7e0
diff --git a/webroot/js/components/chat/message.js b/webroot/js/components/chat/message.js
index e208a72dd9..3fa246bcfe 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 {
</div>
<div
class="message-text text-gray-300 font-normal overflow-y-hidden"
+ title=${timestamp}
dangerouslySetInnerHTML=${
{ __html: formattedMessage }
}