From c6bfe73d26872ad90936002c5bbb844d459e7913 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 5 Oct 2023 22:43:46 +0200 Subject: [PATCH] Don't show "No Topic" --- src/qml/GroupChatDrawerHeader.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/GroupChatDrawerHeader.qml b/src/qml/GroupChatDrawerHeader.qml index b564a2def..830943eaa 100644 --- a/src/qml/GroupChatDrawerHeader.qml +++ b/src/qml/GroupChatDrawerHeader.qml @@ -82,7 +82,9 @@ ColumnLayout { Layout.leftMargin: Kirigami.Units.largeSpacing Layout.rightMargin: Kirigami.Units.largeSpacing - text: root.room && root.room.topic ? root.room.topic.replace(replaceLinks, "$1") : i18n("No Topic") + visible: text.length > 0 + + text: root.room && root.room.topic ? root.room.topic.replace(replaceLinks, "$1") : "" readonly property var replaceLinks: /(http[s]?:\/\/[^ \r\n]*)/g textFormat: TextEdit.MarkdownText wrapMode: Text.Wrap