summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-07-21 18:02:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-07-21 18:02:48 +0300
commitde061b9f00ae2fac52c2400f27588d11e0397251 (patch)
tree824474dd8d12fb08dde97740f258d2d6faffac54 /plugins
parent632a563dab49d9c0b534dc9d29f7ff2aa021dcea (diff)
fixes #2233 (TabSRMM: add outgoing sound for groupchats) - method #2
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp6
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp
index 5f63874862..9b75597491 100644
--- a/plugins/TabSRMM/src/chat_tools.cpp
+++ b/plugins/TabSRMM/src/chat_tools.cpp
@@ -372,7 +372,11 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight
params->hNotifyIcon = g_chatApi.hIcons[ICON_KICK];
break;
case GC_EVENT_MESSAGE:
- params->sound = "ChatMessage";
+ if (params->bInactive)
+ params->sound = "RecvMsgInactive";
+ else
+ params->sound = "RecvMsgActive";
+
if (params->bInactive && !(si->wState & STATE_TALK)) {
si->wState |= STATE_TALK;
db_set_w(si->hContact, si->pszModule, "ApparentMode", ID_STATUS_OFFLINE);
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 54c381ed0a..89391560dd 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -835,7 +835,7 @@ void CMsgDialog::onClick_Ok(CCtrlButton *)
UpdateStatusBar();
if (m_pContainer)
if (fSound && !nen_options.iNoSounds && !m_pContainer->m_flags.m_bNoSound)
- Skin_PlaySound("ChatSent");
+ Skin_PlaySound("SendMsg");
}
else {
if (final_sendformat)