From 3a23720bd8390fc96efdccfe65f27389672155c4 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Thu, 11 Nov 2021 19:32:35 +0100 Subject: Block button on contact request works now - also fix the videochat invitation button appearing on the new contact request screen --- qml/ComposePane.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qml') diff --git a/qml/ComposePane.qml b/qml/ComposePane.qml index 1af4033..06b623d 100644 --- a/qml/ComposePane.qml +++ b/qml/ComposePane.qml @@ -102,6 +102,7 @@ Pane { Button { id: sendVChatUrl enabled: vChatUrl.length > 0 ? true : false + visible: root.isContactRequest ? false : true hoverEnabled: true ToolTip.visible: hovered ToolTip.text: "Send videochat invitation" @@ -160,7 +161,7 @@ Pane { Layout.alignment: Qt.AlignBottom Layout.fillWidth: true text: "Block" - onClicked: root.context.acceptChat(root.chatId) + onClicked: root.context.blockChat(root.chatId) visible: root.isContactRequest icon.name: "call-stop" } -- cgit v1.2.3-70-g09d2