aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
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 89a7937..e7742f6 100644
--- a/context.cpp
+++ b/context.cpp
@@ -173,6 +173,15 @@ Context::getMessageInfo(uint32_t msgId)
return result;
}
+QString
+Context::getMessageHtml(uint32_t msgId)
+{
+ char *html = dc_get_msg_html(m_context, msgId);
+ QString result{html};
+ dc_str_unref(html);
+ return result;
+}
+
uint32_t
Context::sendTextMessage(uint32_t chatId, QString textToSend)
{