aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chat.cpp7
-rw-r--r--chat.h2
2 files changed, 5 insertions, 4 deletions
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()
diff --git a/chat.h b/chat.h
index 1b45e14..6cb7769 100644
--- a/chat.h
+++ b/chat.h
@@ -20,7 +20,7 @@ public:
Q_INVOKABLE uint32_t getId();
Q_INVOKABLE int getType();
Q_INVOKABLE QString getName();
- // Q_INVOKABLE QString getProfileImage();
+ Q_INVOKABLE QString getProfileImage();
Q_INVOKABLE QColor getColor();
Q_INVOKABLE bool canSend();
Q_INVOKABLE bool isMuted();