aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--context.cpp4
-rw-r--r--context.h2
-rw-r--r--qml/ChatPage.qml2
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
diff --git a/context.h b/context.h
index 02f0711..e183699 100644
--- a/context.h
+++ b/context.h
@@ -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 {