From 7302bd5e2ed129b4c73e179df4d9909191d6df3d Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 15 Feb 2021 16:57:45 +0300 Subject: Use dc_msg_get_override_sender_name() --- message.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'message.cpp') diff --git a/message.cpp b/message.cpp index 3027cec..7317075 100644 --- a/message.cpp +++ b/message.cpp @@ -85,6 +85,15 @@ DcMessage::getHeight() return dc_msg_get_height(m_message); } +QString +DcMessage::getOverrideSenderName() +{ + char *name = dc_msg_get_override_sender_name(m_message); + QString result{name}; + dc_str_unref(name); + return result; +} + bool DcMessage::isInfo() { -- cgit v1.2.3-70-g09d2