diff options
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 3df8f93aaa..21e412c172 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -493,13 +493,8 @@ int CMimAPI::PrebuildContactMenu(WPARAM hContact, LPARAM lParam) int CMimAPI::DispatchNewEvent(WPARAM hContact, LPARAM lParam) { - if (hContact) { - HWND h = M.FindWindow(hContact); - if (h == NULL) - h = M.FindWindow(hContact = db_event_getContact((HANDLE)lParam)); - if (h) - PostMessage(h, HM_DBEVENTADDED, hContact, lParam); // was SENDMESSAGE !!! XXX - } + if (hContact) + M.BroadcastMessageAsync(HM_DBEVENTADDED, hContact, lParam); return 0; } |