From 5006c1932ffe0c4f114b2e24c907dffb881ed455 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 13 Oct 2020 02:33:23 +0300 Subject: Add Context::getMessageInfo --- context.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'context.cpp') 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) { -- cgit v1.2.3-70-g09d2