Show date instead of "Yesterday" for RoomDelegate

"Yesterday" takes too much space
This commit is contained in:
miruka 2019-08-17 13:00:32 -04:00
parent 28b5fbd267
commit 3e48d63cf3

View File

@ -68,8 +68,6 @@ HInteractiveRectangle {
Utils.dateIsToday(evDate) ? Utils.dateIsToday(evDate) ?
Utils.formatTime(evDate, false) : // no seconds Utils.formatTime(evDate, false) : // no seconds
Utils.dateIsYesterday(evDate) ? qsTr("Yesterday") :
evDate.getFullYear() == new Date().getFullYear() ? evDate.getFullYear() == new Date().getFullYear() ?
Qt.formatDate(evDate, "dd MMM") : // e.g. "24 Nov" Qt.formatDate(evDate, "dd MMM") : // e.g. "24 Nov"