diff options
author | link2xt <link2xt@testrun.org> | 2021-07-26 00:07:25 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-07-26 00:08:11 +0300 |
commit | cbedf31adbbde68e72f3e2544d28c1048ecb3305 (patch) | |
tree | 0031c60a4fa2e2f4dc9f285a7bfa080028ef8ee2 | |
parent | cd6fe80f84c1f1e44b4ee306ac2672a7287778c1 (diff) | |
download | kdeltachat-cbedf31adbbde68e72f3e2544d28c1048ecb3305.tar.gz kdeltachat-cbedf31adbbde68e72f3e2544d28c1048ecb3305.zip |
dc_unblock_chat() is replaced with dc_accept_chat()
-rw-r--r-- | context.cpp | 4 | ||||
-rw-r--r-- | context.h | 2 | ||||
-rw-r--r-- | qml/ChatPage.qml | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/context.cpp b/context.cpp index a827d5a..cf0d24f 100644 --- a/context.cpp +++ b/context.cpp @@ -81,9 +81,9 @@ Context::blockChat(uint32_t chatId) } void -Context::unblockChat(uint32_t chatId) +Context::acceptChat(uint32_t chatId) { - dc_unblock_chat(m_context, chatId); + dc_accept_chat(m_context, chatId); } QString @@ -30,7 +30,7 @@ public: Q_INVOKABLE void setChatVisibility(uint32_t chatId, int visibility); Q_INVOKABLE void deleteChat(uint32_t chatId); Q_INVOKABLE void blockChat(uint32_t chatId); - Q_INVOKABLE void unblockChat(uint32_t chatId); + Q_INVOKABLE void acceptChat(uint32_t chatId); Q_INVOKABLE QString getChatEncrinfo(uint32_t chatId); Q_INVOKABLE uint32_t getChatEphemeralTimer(uint32_t chatId); Q_INVOKABLE DcChat *getChat(uint32_t chatId); diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index 9b2e7c6..944231d 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -20,7 +20,7 @@ Kirigami.ScrollablePage { contextualActions: [ Kirigami.Action { text: "Accept contact request" - onTriggered: chatPage.context.unblockChat(chatPage.chatId) + onTriggered: chatPage.context.acceptChat(chatPage.chatId) visible: chatPage.chat && chatPage.chat.isContactRequest }, Kirigami.Action { |