summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-22 20:16:42 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-22 20:16:42 +0300
commitacbe9c08e949be95b5549d716232ff7a58785528 (patch)
tree95926b42117f06e01f0655fc14e3d5229d2591e5 /plugins/TabSRMM/src
parent5f68e67d61e0c0ffa6aacd80eda9e0e5c531cc7a (diff)
fixes #4751 (Mute:Always blocks popups, sounds & blinking)
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp
index 166468ab11..f9686fa2da 100644
--- a/plugins/TabSRMM/src/chat_tools.cpp
+++ b/plugins/TabSRMM/src/chat_tools.cpp
@@ -265,18 +265,20 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight
if (dat->m_pWnd)
dat->m_pWnd->Invalidate();
}
-
- if (iMuteMode != CHATMODE_MUTE) {
- auto sound = si->getSoundName(gce->iType);
- if (dat) {
- bInactive = dat->m_pContainer->m_hwnd != GetForegroundWindow();
- bActiveTab = (dat->m_pContainer->m_hwndActive == dat->GetHwnd());
- if (sound && dat->m_pContainer->MustPlaySound(dat))
- Skin_PlaySound(sound);
- }
- else if (sound)
+
+ // if group chat is always muted, we don't play sounds & flash window
+ if (iMuteMode == CHATMODE_MUTE)
+ return;
+
+ auto sound = si->getSoundName(gce->iType);
+ if (dat) {
+ bInactive = dat->m_pContainer->m_hwnd != GetForegroundWindow();
+ bActiveTab = (dat->m_pContainer->m_hwndActive == dat->GetHwnd());
+ if (sound && dat->m_pContainer->MustPlaySound(dat))
Skin_PlaySound(sound);
}
+ else if (sound)
+ Skin_PlaySound(sound);
// dialog event processing
if (dat) {