[network/neochat] src/app/qml: Fix incorrect role being used in maximize component
Joshua Goins <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 45bf15fd5ffdec1c15efbbc6bcc56242fe37ddd7 by Joshua Goins.
Committed on 23/07/2026 at 22:12.
Pushed by redstrate into branch 'master'.
Fix incorrect role being used in maximize component
TimeRole doesn't exist anymore, so it fell back to the event's string
representation. It meant that the filename displayed twice for images
and such.
M +2 -2 src/app/qml/NeochatMaximizeComponent.qml
https://invent.kde.org/network/neochat/-/commit/45bf15fd5ffdec1c15efbbc6bcc56242fe37ddd7
diff --git a/src/app/qml/NeochatMaximizeComponent.qml b/src/app/qml/NeochatMaximizeComponent.qml
index 72cfc46ad..c144b9643 100644
--- a/src/app/qml/NeochatMaximizeComponent.qml
+++ b/src/app/qml/NeochatMaximizeComponent.qml
@@ -51,7 +51,7 @@ Components.AlbumMaximizeComponent {
return {}
}
- model.data(model.index(idx, 0), TimelineMessageModel.TimeRole)
+ model.data(model.index(idx, 0), TimelineMessageModel.DateTimeRole)
}
readonly property var currentProgressInfo: {
@@ -145,7 +145,7 @@ Components.AlbumMaximizeComponent {
}
QQC2.Label {
id: dateTimeLabel
- text: root.currentTime.toLocaleString(Qt.locale(), Locale.ShortFormat)
+ text: root.currentTime.shortDateTime
color: Kirigami.Theme.disabledTextColor
elide: Text.ElideRight
}