|
|
|
|
@ -1599,6 +1599,15 @@ void MessageList::onStreamSources(const uint8_t* data, int len) {
|
|
|
|
|
DEBUG_INFO(DEBUG_CATEGORY_STREAM, "desktop stream header group=%llx sources=%d", (unsigned long long)group, (int)m_streamSources.size()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool MessageList::enableRadio() { |
|
|
|
|
if (m_currentChannelId.isEmpty() || isDmChannel(m_currentChannelId)) return false; |
|
|
|
|
if (!m_radioOn) onRadioToggled(true); |
|
|
|
|
QSignalBlocker blocker(m_radioBtn); |
|
|
|
|
m_radioBtn->setChecked(m_radioOn); |
|
|
|
|
return m_radioOn && RadioAudioEngine::instance()->isActive() |
|
|
|
|
&& RadioAudioEngine::instance()->groupId() == m_currentChannelId.toULongLong(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MessageList::onRadioToggled(bool on) { |
|
|
|
|
if (m_currentChannelId.isEmpty() || isDmChannel(m_currentChannelId)) return; |
|
|
|
|
|
|
|
|
|
|