diff options
author | George Hazan <ghazan@miranda.im> | 2019-05-08 19:40:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-05-08 19:40:50 +0300 |
commit | 106ac71cbd0a6f8fecdf6324cb737bb3232f4a3f (patch) | |
tree | 716d4d4891904e8be2fa47aa72f05a7187c2206d | |
parent | 085f077f0292ac339ab68e038e13044fae315944 (diff) |
Scriver: fix for meta contacts behavior
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 5b16986d68..990d3dd326 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -87,13 +87,14 @@ static INT_PTR ReadMessageCommand(WPARAM, LPARAM lParam) static int MessageEventAdded(WPARAM hContact, LPARAM lParam)
{
+ MCONTACT hContactWnd;
MEVENT hDbEvent = (MEVENT)lParam;
- HWND hwnd = Srmm_FindWindow(hContact);
+ HWND hwnd = Srmm_FindWindow(hContactWnd = hContact);
if (hwnd == nullptr)
- hwnd = Srmm_FindWindow(hContact = db_event_getContact(hDbEvent));
+ hwnd = Srmm_FindWindow(hContactWnd = db_event_getContact(hDbEvent));
if (hwnd)
- SendMessage(hwnd, HM_DBEVENTADDED, hContact, lParam);
+ SendMessage(hwnd, HM_DBEVENTADDED, hContactWnd, lParam);
DBEVENTINFO dbei = {};
db_event_get(hDbEvent, &dbei);
|