Open user avatar galleries from desktop messages
This commit is contained in:
1 parent
9970b2235c
commit
3a793e25b3
3 files changed
+12
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user