Add local channel deletion to desktop channel settings
This commit is contained in:
1 parent
d67e0b0c23
commit
962a2df3f8
12 files changed
+203
-8
No files matched your search
@@ -886,7 +886,8 @@ void MessageList::loadChannel(const QString& channelId) {
|
||||
m_callBtn->setVisible(isDmChannel(channelId));
|
||||
m_inviteBtn->setVisible(isDmChannel(channelId));
|
||||
m_peerStatus->setVisible(isDmChannel(channelId));
|
||||
m_radioBtn->setVisible(!isDmChannel(channelId));
|
||||
m_radioBtn->setVisible(!channelId.isEmpty() && !isDmChannel(channelId));
|
||||
m_inputBar->setEnabled(!channelId.isEmpty());
|
||||
m_inputBar->setRecordingContext(m_db ? m_db->dbPath() + "/media" : QString(), channelId);
|
||||
m_readDebounce->stop();
|
||||
|
||||
@@ -900,6 +901,10 @@ void MessageList::loadChannel(const QString& channelId) {
|
||||
if (m_channelTitle) m_channelTitle->setText(title);
|
||||
|
||||
m_inputBar->setDmMode(isDmChannel(channelId));
|
||||
if (channelId.isEmpty()) {
|
||||
DEBUG_INFO(DEBUG_CATEGORY_CHAT, "message list cleared: no channel selected");
|
||||
return;
|
||||
}
|
||||
/* История и состояния PM поступают из ядра в одном снимке. */
|
||||
if (isDmChannel(channelId)) {
|
||||
m_radioBtn->setEnabled(false);
|
||||
|
||||
Reference in new issue
Block a user