aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-14 02:06:11 +0300
committerlink2xt <link2xt@testrun.org>2021-03-14 02:06:11 +0300
commit6d4f7413b44821bd3054dd0fcfea10449c5585e4 (patch)
tree5d76e81464579ee8d492dbbb7bf13f62b353c5fb /message.cpp
parenta812f5f4eaa48ccd4ac93092b16b99f4427d706f (diff)
downloadkdeltachat-6d4f7413b44821bd3054dd0fcfea10449c5585e4.tar.gz
kdeltachat-6d4f7413b44821bd3054dd0fcfea10449c5585e4.zip
Add colored border to quotes
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;
+ }
+}