Commit eab49b63 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: person image

Automatically detect image format instead of using PNG by default.

Change-Id: Ia63242ff684e3d11ead4db7368bbc6c59bef3cc1
parent e13be71b
......@@ -41,7 +41,7 @@ namespace Interfaces {
ImageManipulationDelegate();
QVariant contactPhoto(Person* c, const QSize& size, bool displayPresence = true) override;
virtual QByteArray toByteArray(const QVariant& pxm) override;
virtual QVariant personPhoto(const QByteArray& data, const QString& type = "PNG") override;
virtual QVariant personPhoto(const QByteArray& data, const QString& type = nil) override;
QVariant conversationPhoto(const lrc::api::conversation::Info& conversation,
const lrc::api::account::Info& accountInfo,
const QSize& size = QSize(IMG_SIZE, IMG_SIZE),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment