chatgui: настройка звука уведомления на канал (sound_on_message)

This commit is contained in:
evgeny committed 2026-09-14 21:12:53 +03:00
1 parent fc2262912a
commit 910cfeac20
3 files changed
+10 -1

No files matched your search

+2 -1
View File
@@ -593,7 +593,8 @@ void MainWindow::openImage(const QString& filePath) {
void MainWindow::onMessageReceived(const char* ch_id, int ch_id_len, uint64_t author) {
QString cid = QString::fromUtf8(ch_id, ch_id_len);
if (m_db && author != m_db->myNodeId())
if (m_db && author != m_db->myNodeId()
&& m_db->getUiStateInt(QStringLiteral("ch_%1_sound_on_message").arg(cid), 1))
SoundManager::instance()->play("msg_incoming");
if (m_messageList) {
if (cid == m_currentChannelId) {