diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-24 09:52:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-24 09:52:51 +0000 |
commit | 8278b0f406d3e1f1d2d2938b0047f255fa0f2825 (patch) | |
tree | 8de9f0448a1235d5d73cd4b4af0aa8673a9bff9f /plugins/TabSRMM/src/mim.cpp | |
parent | 04c18aa4ab21f78ddd29fcbdc18afba148f96135 (diff) |
automatic displaying custom events in tabSRMM according to their masks
git-svn-id: http://svn.miranda-ng.org/main/trunk@5111 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 7699d1da01..865c267924 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -712,7 +712,9 @@ int CMimAPI::MessageEventAdded(WPARAM wParam, LPARAM lParam) HWND hwnd = M->FindWindow((HANDLE)wParam);
- if (dbei.flags & DBEF_SENT || !(dbei.eventType == EVENTTYPE_MESSAGE || dbei.eventType == EVENTTYPE_FILE) || dbei.flags & DBEF_READ)
+ BOOL isCustomEvent = IsCustomEvent(dbei.eventType);
+ BOOL isShownCustomEvent = DbEventIsForMsgWindow(&dbei);
+ if (dbei.flags & DBEF_SENT || (isCustomEvent && !isShownCustomEvent) || dbei.flags & DBEF_READ)
return 0;
CallServiceSync(MS_CLIST_REMOVEEVENT, wParam, (LPARAM)1);
|