From c0c46b6dffd4e7cdbf11bdbfe284c7a7ff9ba4c6 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 6 Jul 2021 11:29:08 +0200 Subject: [PATCH] fix(StatusChatInfoButton): prefix chat name with "#" if needed Closes #229 --- ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml index 7de26a5464..6524bfe506 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml @@ -137,7 +137,10 @@ Rectangle { anchors.leftMargin: statusIcon.visible ? 1 : 0 anchors.top: parent.top - text: statusChatInfoButton.title + text: statusChatInfoButton.type === StatusChatInfoButton.Type.PublicChat && + !statusChatInfoButton.title.startsWith("#") ? + "#" + statusChatInfoButton.title : + statusChatInfoButton.title color: statusChatInfoButton.muted ? Theme.palette.directColor5 : Theme.palette.directColor1 font.pixelSize: 15 font.weight: Font.Medium