From e6edb1daa34a7deeff9ed3c7bc2c50f7521820ed Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Fri, 18 Jun 2021 14:10:45 +0200
Subject: [PATCH] Hide last message on spaces

---
 resources/qml/RoomList.qml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 5845eb814..99e0ed41c 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -254,6 +254,8 @@ Page {
 
                         Label {
                             id: timestamp
+                            visible: !model.isInvite && !model.isSpace
+                            width: visible ? 0 : undefined
 
                             Layout.alignment: Qt.AlignRight | Qt.AlignBottom
                             font.pixelSize: fontMetrics.font.pixelSize * 0.9
@@ -266,7 +268,7 @@ Page {
                     RowLayout {
                         Layout.fillWidth: true
                         spacing: 0
-                        visible: !model.isInvite
+                        visible: !model.isInvite && !model.isSpace
                         height: visible ? 0 : undefined
 
                         ElidedLabel {
-- 
GitLab