mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-20 19:39:22 +00:00
fix(Chat): make message date group labels work again
This commit is contained in:
parent
86f64a4613
commit
7d88adcbe1
@ -21,6 +21,7 @@ StatusBaseText {
|
|||||||
if (prevMsgDate > 0 && currentMsgDate.getDay() === prevMsgDate.getDay())
|
if (prevMsgDate > 0 && currentMsgDate.getDay() === prevMsgDate.getDay())
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
|
const now = new Date();
|
||||||
// FIXME Qt6: replace with Intl.DateTimeFormat
|
// FIXME Qt6: replace with Intl.DateTimeFormat
|
||||||
const monthName = Qt.locale().standaloneMonthName(currentMsgDate.getMonth(), Locale.LongFormat)
|
const monthName = Qt.locale().standaloneMonthName(currentMsgDate.getMonth(), Locale.LongFormat)
|
||||||
if (now.getFullYear() > currentMsgDate.getFullYear())
|
if (now.getFullYear() > currentMsgDate.getFullYear())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user