From ce3146ebc848bd41e47f9a141337c96f212af304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Tue, 20 Dec 2022 01:06:13 +0100 Subject: [PATCH] feat(StatusChatInfoButton): Add possibility to enforce hiding type icon --- ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml index cea1ea803e..4d0ae42af9 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml @@ -16,6 +16,8 @@ Button { property bool muted property int pinnedMessagesCount + property bool forceHideTypeIcon: false + property StatusAssetSettings asset: StatusAssetSettings { width: 36 height: 36 @@ -77,7 +79,7 @@ Button { spacing: 1 StatusIcon { - visible: root.type !== StatusChatInfoButton.Type.OneToOneChat + visible: root.type !== StatusChatInfoButton.Type.OneToOneChat && !forceHideTypeIcon Layout.preferredWidth: 14 Layout.preferredHeight: 14 color: root.muted ? Theme.palette.baseColor1 : Theme.palette.directColor1