Browse Source

Remove "Sent" being inserted incorrectly. Fixes #1252

pull/1307/head
Gabe Kangas 4 years ago
parent
commit
784d10c1e9
  1. 2
      webroot/js/components/chat/chat-message-view.js

2
webroot/js/components/chat/chat-message-view.js

@ -168,7 +168,7 @@ function formatTimestamp(sentAt) {
let diffInDays = getDiffInDaysFromNow(sentAt); let diffInDays = getDiffInDaysFromNow(sentAt);
if (diffInDays >= 1) { if (diffInDays >= 1) {
return ( return (
`Sent at ${sentAt.toLocaleDateString('en-US', { `at ${sentAt.toLocaleDateString('en-US', {
dateStyle: 'medium', dateStyle: 'medium',
})} at ` + sentAt.toLocaleTimeString() })} at ` + sentAt.toLocaleTimeString()
); );

Loading…
Cancel
Save