aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp18
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)
{