aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'message.cpp')
-rw-r--r--message.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp
index 7eb6019..3027cec 100644
--- a/message.cpp
+++ b/message.cpp
@@ -90,3 +90,12 @@ DcMessage::isInfo()
{
return dc_msg_is_info(m_message);
}
+
+QString
+DcMessage::getQuotedText()
+{
+ char *text = dc_msg_get_quoted_text(m_message);
+ QString result{text};
+ dc_str_unref(text);
+ return result;
+}