From 144ac69d31349a7df1b426511406393657635c0d 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 --- src/StatusQ/Controls/StatusChatInfoButton.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Controls/StatusChatInfoButton.qml b/src/StatusQ/Controls/StatusChatInfoButton.qml index 7de26a54..6524bfe5 100644 --- a/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/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