|
|
|
|
@ -55,6 +55,7 @@ void chat_core_save_ui_state_trampoline(void* arg);
|
|
|
|
|
#include "radiopanel.h" |
|
|
|
|
#include "flagpainter.h" |
|
|
|
|
#include "avatars/avatarmanager.h" |
|
|
|
|
#include "avatars/avatargallery.h" |
|
|
|
|
#include <QLabel> |
|
|
|
|
#include <QPushButton> |
|
|
|
|
#include <QHBoxLayout> |
|
|
|
|
@ -443,6 +444,9 @@ MessageList::MessageList(DbManager* db, AudioRecorder* recorder, QWidget *parent
|
|
|
|
|
msgDelegate->setImageOpenCallback([this](const QString& path) { |
|
|
|
|
emit openImageRequested(path); |
|
|
|
|
}); |
|
|
|
|
connect(msgDelegate, &MessageDelegate::avatarRequested, this, [](const QString& channel, quint64 owner) { |
|
|
|
|
showAvatarGallery(channel, owner); |
|
|
|
|
}); |
|
|
|
|
msgDelegate->setDownloadCallback([](const QModelIndex& index) { |
|
|
|
|
QString target = index.data(MsgChannelIdRole).toString(); |
|
|
|
|
qint64 id = index.data(MsgIdRole).toLongLong(); |
|
|
|
|
|