From a1c23f715aca89cad4c77aa55b6e0ef9b8f8a2a2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sun, 16 Jun 2019 16:19:26 +0200 Subject: [PATCH] always show date for now (but omit year to make it less annoying) --- src/domain/session/room/timeline/tiles/MessageTile.js | 2 +- src/ui/web/session/room/timeline/TextMessageView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/MessageTile.js b/src/domain/session/room/timeline/tiles/MessageTile.js index deff0c77..f164c948 100644 --- a/src/domain/session/room/timeline/tiles/MessageTile.js +++ b/src/domain/session/room/timeline/tiles/MessageTile.js @@ -18,7 +18,7 @@ export default class MessageTile extends SimpleTile { } get date() { - return this._date.toLocaleDateString(); + return this._date.toLocaleDateString({}, {month: "numeric", day: "numeric"}); } get time() { diff --git a/src/ui/web/session/room/timeline/TextMessageView.js b/src/ui/web/session/room/timeline/TextMessageView.js index 25a7003f..3d489c5c 100644 --- a/src/ui/web/session/room/timeline/TextMessageView.js +++ b/src/ui/web/session/room/timeline/TextMessageView.js @@ -7,7 +7,7 @@ export default class TextMessageView extends TemplateView { {className: {"TextMessageView": true, own: vm.isOwn}}, t.div({className: "message-container"}, [ t.div({className: "sender"}, vm => vm.isContinuation ? "" : vm.sender), - t.p([vm.text, t.time(vm.time)]), + t.p([vm.text, t.time(vm.date + " " + vm.time)]), ]) ); }