aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-02-22 01:48:27 +0300
committerlink2xt <link2xt@testrun.org>2021-02-22 01:48:27 +0300
commit8f669a6a45cff24e874d8249bc77faed34a2c734 (patch)
tree4ca9903df4056e0cdf957d619ac472251e3e1ddd
parent429338fba9a3102bc91966f2df4f95dcdaa32fe1 (diff)
downloadkdeltachat-8f669a6a45cff24e874d8249bc77faed34a2c734.tar.gz
kdeltachat-8f669a6a45cff24e874d8249bc77faed34a2c734.zip
Add Context::setChatMuteDuration
-rw-r--r--context.cpp6
-rw-r--r--context.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index 0951241..b768fb6 100644
--- a/context.cpp
+++ b/context.cpp
@@ -136,3 +136,9 @@ Context::sendTextMessage(uint32_t chatId, QString textToSend)
QByteArray utf8Text = textToSend.toUtf8();
return dc_send_text_msg(m_context, chatId, utf8Text.constData());
}
+
+bool
+Context::setChatMuteDuration(uint32_t chatId, int64_t duration)
+{
+ return dc_set_chat_mute_duration(m_context, chatId, duration);
+}
diff --git a/context.h b/context.h
index eda080a..7c8d4a2 100644
--- a/context.h
+++ b/context.h
@@ -34,6 +34,7 @@ public:
QString getBlobdir();
Q_INVOKABLE bool setConfig(QString key, QString value);
Q_INVOKABLE QString getConfig(QString key);
+ Q_INVOKABLE bool setChatMuteDuration(uint32_t chatId, int64_t duration);
Q_INVOKABLE QString getMessageInfo(uint32_t msgId);
private: