aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2020-10-13 02:33:23 +0300
committerlink2xt <link2xt@testrun.org>2020-10-13 02:33:23 +0300
commit5006c1932ffe0c4f114b2e24c907dffb881ed455 (patch)
treef8c63142c48dc2a418152de3a0a8b31913730c95 /context.cpp
parentc02c9dbb15af7598994edbcb7e13eb937bce1e6a (diff)
downloadkdeltachat-5006c1932ffe0c4f114b2e24c907dffb881ed455.tar.gz
kdeltachat-5006c1932ffe0c4f114b2e24c907dffb881ed455.zip
Add Context::getMessageInfo
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index ef657c6..5bb0f44 100644
--- a/context.cpp
+++ b/context.cpp
@@ -85,6 +85,15 @@ Context::getBlobdir()
return result;
}
+QString
+Context::getMessageInfo(uint32_t msgId)
+{
+ char *info = dc_get_msg_info(m_context, msgId);
+ QString result{info};
+ dc_str_unref(info);
+ return result;
+}
+
uint32_t
Context::sendTextMessage(uint32_t chatId, QString textToSend)
{