Fix ETCP session recovery and router lifecycle; confirm chat invites before publishing
This commit is contained in:
1 parent
018c8e795d
commit
3131dcbb7c
67 files changed
+3005
-1249
No files matched your search
@@ -602,15 +602,14 @@ void MessageList::loadChannel(const QString& channelId) {
|
||||
if (!m_currentChannelId.isEmpty()) {
|
||||
if (!sameChannel) {
|
||||
saveChannelState();
|
||||
/* выключаем рацию предыдущего канала при переключении */
|
||||
/* выключаем рацию предыдущего канала при переключении (деактивирует подписку в core) */
|
||||
if (m_radioOn) {
|
||||
onRadioToggled(false);
|
||||
m_radioBtn->blockSignals(true);
|
||||
m_radioBtn->setChecked(false);
|
||||
m_radioBtn->blockSignals(false);
|
||||
m_radioOn = false;
|
||||
RadioAudioEngine::instance()->stop();
|
||||
updateRadioUi();
|
||||
}
|
||||
m_talkingLabel->hide();
|
||||
} else {
|
||||
QModelIndex topIdx = m_view->indexAt(QPoint(0, 0));
|
||||
m_savedTopMsgId = topIdx.isValid() ? topIdx.data(MsgIdRole).toLongLong() : 0;
|
||||
@@ -1124,6 +1123,7 @@ void MessageList::onRadioToggled(bool on) {
|
||||
RadioAudioEngine::instance()->start(groupId);
|
||||
} else {
|
||||
RadioAudioEngine::instance()->stop();
|
||||
m_talkingLabel->hide();
|
||||
}
|
||||
updateRadioUi();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user