From f9fde8e2aed4d0e871e613f694282a24fef7c9dd Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 22 Feb 2021 01:59:44 +0300 Subject: Add Context::decideOnContactRequest --- context.cpp | 6 ++++++ context.h | 1 + 2 files changed, 7 insertions(+) diff --git a/context.cpp b/context.cpp index b768fb6..8df8120 100644 --- a/context.cpp +++ b/context.cpp @@ -142,3 +142,9 @@ 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); +} diff --git a/context.h b/context.h index 7c8d4a2..756adc6 100644 --- a/context.h +++ b/context.h @@ -36,6 +36,7 @@ public: Q_INVOKABLE QString getConfig(QString key); Q_INVOKABLE bool setChatMuteDuration(uint32_t chatId, int64_t duration); Q_INVOKABLE QString getMessageInfo(uint32_t msgId); + Q_INVOKABLE uint32_t decideOnContactRequest(uint32_t msgId, int decision); private: dc_context_t *m_context{nullptr}; -- cgit v1.2.3-70-g09d2