aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-16 05:25:52 +0300
committerlink2xt <link2xt@testrun.org>2021-03-19 03:13:33 +0300
commit1b79a5d06f02035db165b7a2c294df1006a503ed (patch)
treecc0b2b0505c629c3f08832f259285892bda95745 /context.cpp
parenta21b68a39a3acfe2f82df274c51afffcfe60fe1c (diff)
downloadkdeltachat-1b79a5d06f02035db165b7a2c294df1006a503ed.tar.gz
kdeltachat-1b79a5d06f02035db165b7a2c294df1006a503ed.zip
Mark displayed messages as seen
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index 6a7148a..89a7937 100644
--- a/context.cpp
+++ b/context.cpp
@@ -117,6 +117,12 @@ Context::marknoticedChat(uint32_t chatId) {
return dc_marknoticed_chat(m_context, chatId);
}
+void
+Context::markseenMsgs(QVector<uint32_t> msg_ids)
+{
+ dc_markseen_msgs(m_context, msg_ids.constData(), msg_ids.count());
+}
+
DcMessage *
Context::getMessage(uint32_t msgId)
{