aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-08-28 12:03:48 +0000
committerlink2xt <link2xt@testrun.org>2021-08-28 15:05:39 +0300
commit6d2fc32a423b7b470521c67d94d9b59c168a948f (patch)
treed5eb1cdf41c769a9b7aea5677eff2f4b193452f8 /message.cpp
parent7767e2843c0301bb8ee64eca324707cc93dcad09 (diff)
downloadkdeltachat-6d2fc32a423b7b470521c67d94d9b59c168a948f.tar.gz
kdeltachat-6d2fc32a423b7b470521c67d94d9b59c168a948f.zip
Show message timestamps
Diffstat (limited to 'message.cpp')
-rw-r--r--message.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp
index 90723d9..4aae043 100644
--- a/message.cpp
+++ b/message.cpp
@@ -46,6 +46,12 @@ DcMessage::getState()
return dc_msg_get_state(m_message);
}
+QDateTime
+DcMessage::getTimestamp()
+{
+ return QDateTime::fromSecsSinceEpoch (dc_msg_get_timestamp(m_message), Qt::UTC);
+}
+
void
DcMessage::setText(QString text)
{