aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2020-10-12 01:06:11 +0300
committerlink2xt <link2xt@testrun.org>2020-10-12 01:06:11 +0300
commitc02c9dbb15af7598994edbcb7e13eb937bce1e6a (patch)
treeb4eaa6cb76b83877e55eed2443fbab1d381ea023 /message.cpp
parent6b6a96a520d2a33584f9a0220da8874af5012c8b (diff)
downloadkdeltachat-c02c9dbb15af7598994edbcb7e13eb937bce1e6a.tar.gz
kdeltachat-c02c9dbb15af7598994edbcb7e13eb937bce1e6a.zip
Add basic quoting support
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;
+}