[network/neochat/release/26.08] 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 169817655f8d16a309c665cf6a5bb9a90fc4338f by Joshua Goins.
Committed on 24/07/2026 at 20:14.
Pushed by redstrate into branch 'release/26.08'.

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.

(cherry picked from commit 45bf15fd5ffdec1c15efbbc6bcc56242fe37ddd7)

M  +2    -2    src/app/qml/NeochatMaximizeComponent.qml

https://invent.kde.org/network/neochat/-/commit/169817655f8d16a309c665cf6a5bb9a90fc4338f

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
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.