From 14d8dea44d81b365477263aa0087e3a7c633ae15 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 22 Feb 2021 02:10:02 +0300 Subject: Uncomment DcChat::getProfileImage --- chat.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chat.cpp') diff --git a/chat.cpp b/chat.cpp index ffb8624..bcda818 100644 --- a/chat.cpp +++ b/chat.cpp @@ -37,13 +37,14 @@ DcChat::getName() return result; } -/* QString DcChat::getProfileImage() { - char *profileImage = dc_chat_get_profile_image(m_chat); + char *profileImage = dc_chat_get_profile_image(m_chat); + QString result{profileImage}; + dc_str_unref(profileImage); + return result; } -*/ QColor DcChat::getColor() -- cgit v1.2.3-70-g09d2