From 17d30c095911272ce9e8e25c71aee405f79b4b64 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 28 Aug 2021 12:03:50 +0000 Subject: Accept and reject contact requests in the compose pane --- qml/ChatPage.qml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'qml/ChatPage.qml') diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index 944231d..a0541cc 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -17,19 +17,6 @@ Kirigami.ScrollablePage { required property var chatId property DcChat chat: context.getChat(chatId) - contextualActions: [ - Kirigami.Action { - text: "Accept contact request" - onTriggered: chatPage.context.acceptChat(chatPage.chatId) - visible: chatPage.chat && chatPage.chat.isContactRequest - }, - Kirigami.Action { - text: "Block contact request" - onTriggered: chatPage.context.blockChat(chatPage.chatId) - visible: chatPage.chat && chatPage.chat.isContactRequest - } - ] - function updateMessagelist() { // Reverse message list, because it is laid out from bottom to top. let messagelist = context.getMsgIdList(chatId).reverse() @@ -126,8 +113,8 @@ Kirigami.ScrollablePage { footer: ComposePane { context: chatPage.context chatId: chatPage.chatId + chat: chatPage.chat Layout.fillWidth: true - visible: chatPage.chat && chatPage.chat.canSend } } -- cgit v1.2.3-70-g09d2