fix(Chat): make message date group labels work again

This commit is contained in:
Pascal Precht 2023-01-10 13:20:48 +01:00 committed by osmaczko
parent 86f64a4613
commit 7d88adcbe1
1 changed files with 1 additions and 0 deletions

View File

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