From 4e15002beb7987fe6d19170585bd90498d9fa26a Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 24 Mar 2021 13:30:15 -0400 Subject: [PATCH] hide reactions and replies when the message is a transaction --- .../Chat/ChatColumn/MessageComponents/ChatButtons.qml | 3 ++- .../Chat/ChatColumn/MessageComponents/CompactMessage.qml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml index b0181c0282..b738399ca3 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml @@ -8,9 +8,10 @@ Rectangle { property bool parentIsHovered: false signal hoverChanged(bool hovered) property int containerMargin: 2 + property int contentType: 2 id: buttonsContainer - visible: buttonsContainer.parentIsHovered || isMessageActive + visible: (buttonsContainer.parentIsHovered || isMessageActive) && contentType != Constants.transactionType width: buttonRow.width + buttonsContainer.containerMargin * 2 height: 36 radius: Style.current.radius diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml index 61f9621f0d..b88d13484f 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml @@ -29,6 +29,7 @@ Item { } ChatButtons { + contentType: root.contentType parentIsHovered: root.isHovered onHoverChanged: root.isHovered = hovered anchors.right: parent.right