Skip to content

Commit

Permalink
fix(Chat): make message date group labels work again
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit authored and osmaczko committed Jan 11, 2023
1 parent 86f64a4 commit 7d88adc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/StatusQ/src/StatusQ/Components/StatusDateGroupLabel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7d88adc

Please sign in to comment.