summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-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) {