summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-05 16:03:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-05 16:03:18 +0300
commit3d95d004ee1986d78840e9e54e105315f2c3f0d4 (patch)
tree2254c0ce7e43bbb76791d90f2bf52ab39b80fb40 /plugins/TabSRMM
parentca707c1e556df03d1278f7b955d63c6015675a37 (diff)
fixes #4514 completely
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index e07e303291..49a47794ff 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -737,8 +737,9 @@ int CMsgDialog::FindRTLLocale()
void CMsgDialog::FlashOnClist(MEVENT hEvent, const DB::EventInfo &dbei)
{
m_dwTickLastEvent = GetTickCount();
+ bool bSent = dbei.flags & DBEF_SENT;
- if ((GetForegroundWindow() != m_pContainer->m_hwnd || m_pContainer->m_hwndActive != m_hwnd) && !(dbei.flags & DBEF_SENT) && dbei.eventType == EVENTTYPE_MESSAGE) {
+ if ((GetForegroundWindow() != m_pContainer->m_hwnd || m_pContainer->m_hwndActive != m_hwnd) && !bSent) {
m_dwUnread++;
AddUnreadContact(m_hContact);
}
@@ -749,7 +750,7 @@ void CMsgDialog::FlashOnClist(MEVENT hEvent, const DB::EventInfo &dbei)
if (!g_plugin.bFlashOnClist || isChat())
return;
- if ((GetForegroundWindow() != m_pContainer->m_hwnd || m_pContainer->m_hwndActive != m_hwnd) && !(dbei.flags & DBEF_SENT) && dbei.eventType == EVENTTYPE_MESSAGE && !m_bFlashClist) {
+ if ((GetForegroundWindow() != m_pContainer->m_hwnd || m_pContainer->m_hwndActive != m_hwnd) && !bSent && !m_bFlashClist) {
for (int i = 0;; i++) {
auto *cle = Clist_GetEvent(m_hContact, i);
if (cle == nullptr)