aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'message.cpp')
-rw-r--r--message.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp
index 7317075..ff4bab9 100644
--- a/message.cpp
+++ b/message.cpp
@@ -108,3 +108,14 @@ DcMessage::getQuotedText()
dc_str_unref(text);
return result;
}
+
+DcMessage *
+DcMessage::getQuotedMessage()
+{
+ dc_msg_t *quote = dc_msg_get_quoted_msg(m_message);
+ if (quote) {
+ return new DcMessage{quote};
+ } else {
+ return NULL;
+ }
+}