mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +03:00
Add timestamp to title chat
This commit is contained in:
parent
6a0e8deae3
commit
334a69386d
1 changed files with 2 additions and 1 deletions
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue