Skip to content

Commit

Permalink
Remove timing from typing message
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Jul 15, 2024
1 parent cbf1e70 commit baca53d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/frontend/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,15 @@ class App {

const date = `${ String( datetime.getDate() ).padStart( 2, 0 ) }/${ String( datetime.getMonth() + 1 ).padStart( 2, 0 ) }/${ datetime.getFullYear() } ${ String( datetime.getHours() ).padStart( 2, 0 ) }:${ String( datetime.getMinutes() ).padStart( 2, 0 ) } ${ 12 <= datetime.getHours() ? 'PM' : 'AM' }`;

let messageHTML = `<p>${message}</p>`;

if ( null === id ) {
messageHTML += `<time datetime="${time}">${date}</time>`;
}

const messageDiv = this.createElement( 'div', {
className: `hyve-${sender}-message`,
innerHTML: `<p>${message}</p><time datetime="${time}">${date}</time>`
innerHTML: messageHTML
});

if ( 'bot' === sender && window.hyve.colors?.assistant_background ) {
Expand Down

0 comments on commit baca53d

Please sign in to comment.