aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-02-22 20:46:00 +0300
committerlink2xt <link2xt@testrun.org>2021-02-22 20:46:00 +0300
commit5cc6dd5005e8f630cc80b7b3c51cf302bb08e9a0 (patch)
treea269370df52fae408a5b4686de3c7a9378f0f4e2
parent4b8c3133655969dc7dbd335edb79ca1358ab250c (diff)
downloadkdeltachat-5cc6dd5005e8f630cc80b7b3c51cf302bb08e9a0.tar.gz
kdeltachat-5cc6dd5005e8f630cc80b7b3c51cf302bb08e9a0.zip
Add Context::marknoticedChat()
-rw-r--r--context.cpp5
-rw-r--r--context.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index 82b9a6e..9c1ac94 100644
--- a/context.cpp
+++ b/context.cpp
@@ -85,6 +85,11 @@ Context::getFreshMsgCnt(uint32_t chatId) {
return dc_get_fresh_msg_cnt(m_context, chatId);
}
+void
+Context::marknoticedChat(uint32_t chatId) {
+ return dc_marknoticed_chat(m_context, chatId);
+}
+
DcMessage *
Context::getMessage(uint32_t msgId)
{
diff --git a/context.h b/context.h
index 8e6b02c..c62529e 100644
--- a/context.h
+++ b/context.h
@@ -29,6 +29,7 @@ public:
Q_INVOKABLE DcChat *getChat(uint32_t chatId);
Q_INVOKABLE QVariantList getMsgIdList(uint32_t chatId);
Q_INVOKABLE int getFreshMsgCnt(uint32_t chatId);
+ Q_INVOKABLE void marknoticedChat(uint32_t chatId);
Q_INVOKABLE DcMessage *getMessage(uint32_t msgId);
Q_INVOKABLE DcContact *getContact(uint32_t contactId);
Q_INVOKABLE uint32_t sendTextMessage(uint32_t chatId, QString textToSend);