diff options
author | link2xt <link2xt@testrun.org> | 2021-07-26 00:07:19 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-07-26 00:08:11 +0300 |
commit | cd6fe80f84c1f1e44b4ee306ac2672a7287778c1 (patch) | |
tree | 150ab9e3b2f4a2228be0387fab5d7f40af363d2b /context.cpp | |
parent | 9e5fe2dc856795d0d3d8b6a3adf3fdd3015d9158 (diff) | |
download | kdeltachat-cd6fe80f84c1f1e44b4ee306ac2672a7287778c1.tar.gz kdeltachat-cd6fe80f84c1f1e44b4ee306ac2672a7287778c1.zip |
Get rid of the contact requests chat
Diffstat (limited to 'context.cpp')
-rw-r--r-- | context.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/context.cpp b/context.cpp index fbd4129..a827d5a 100644 --- a/context.cpp +++ b/context.cpp @@ -74,6 +74,18 @@ Context::deleteChat(uint32_t chatId) dc_delete_chat(m_context, chatId); } +void +Context::blockChat(uint32_t chatId) +{ + dc_block_chat(m_context, chatId); +} + +void +Context::unblockChat(uint32_t chatId) +{ + dc_unblock_chat(m_context, chatId); +} + QString Context::getChatEncrinfo(uint32_t chatId) { @@ -212,12 +224,6 @@ Context::setChatMuteDuration(uint32_t chatId, int64_t duration) return dc_set_chat_mute_duration(m_context, chatId, duration); } -uint32_t -Context::decideOnContactRequest(uint32_t msgId, int decision) -{ - return dc_decide_on_contact_request(m_context, msgId, decision); -} - DcMessage * Context::newMessage(int viewtype) { |