Add own files button to the channel list footer

This commit is contained in:
evgeny committed 2026-10-09 22:58:01 +02:00
1 parent 7f3247bfcc
commit 2e4ed0347b
3 files changed
+32

No files matched your search

+11
View File
@@ -610,6 +610,17 @@ void MainWindow::setupConnects() {
m_messageList, &MessageList::reloadLocalNicks);
connect(m_accountList, &AccountList::filesRequested, this, &MainWindow::showMemberFiles);
connect(m_channelList, &ChannelList::filesRequested, this, [this](const QString& channel) { showMemberFiles(channel); });
connect(m_channelList, &ChannelList::ownFilesRequested, this, [this](const QString& channel) {
quint64 owner = m_db ? m_db->myNodeId() : 0;
if (!channel.toULongLong() || !owner) {
DEBUG_WARN(DEBUG_CATEGORY_MEDIA, "file browser: own files unavailable channel=%s owner=%llu",
qPrintable(channel), (unsigned long long)owner);
return;
}
DEBUG_INFO(DEBUG_CATEGORY_MEDIA, "file browser: opening own files channel=%s owner=%llu",
qPrintable(channel), (unsigned long long)owner);
showMemberFiles(channel, owner);
});
connect(m_accountList, &AccountList::callRequested, this, &MainWindow::onCallRequested);
connect(m_messageList, &MessageList::callRequested, this, &MainWindow::onCallRequested);
connect(m_accountList, &AccountList::pmRequested, this, &MainWindow::onPmRequested);