fix: remove group labels for 'today' and 'yesterday'

Closes #8377
This commit is contained in:
Pascal Precht 2023-01-04 15:44:10 +01:00 committed by r4bbit
parent 4fb18e7cac
commit 1a468a144b
1 changed files with 0 additions and 9 deletions

View File

@ -21,15 +21,6 @@ StatusBaseText {
if (prevMsgDate > 0 && currentMsgDate.getDay() === prevMsgDate.getDay())
return "";
const now = new Date();
if (now.getFullYear() == currentMsgDate.getFullYear() && now.getMonth() == currentMsgDate.getMonth() && now.getDate() == currentMsgDate.getDate())
return qsTr("Today");
const yesterday = new Date();
yesterday.setDate(now.getDate() - 1);
if (yesterday.getFullYear() == currentMsgDate.getFullYear() && yesterday.getMonth() == currentMsgDate.getMonth() && yesterday.getDate() == currentMsgDate.getDate())
return qsTr("Yesterday");
// FIXME Qt6: replace with Intl.DateTimeFormat
const monthName = Qt.locale().standaloneMonthName(currentMsgDate.getMonth(), Locale.LongFormat)
if (now.getFullYear() > currentMsgDate.getFullYear())