From bcff69ce84b3d723369526d4872d4373ecfe0ede Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Jul 2014 19:17:10 +0000 Subject: fix for typing popups git-svn-id: http://svn.miranda-ng.org/main/trunk@9763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/mim.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 6c5e558047..029b1eaddc 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -232,9 +232,14 @@ int CMimAPI::TypingMessage(WPARAM hContact, LPARAM mode) int issplit = 1, foundWin = 0, preTyping = 0; BOOL fShowOnClist = TRUE; - HWND hwnd = M.FindWindow(hContact); - if (hwnd == NULL && db_mc_isSub(hContact)) - hwnd = M.FindWindow(db_mc_getMeta(hContact)); + HWND hwnd = NULL; + MCONTACT hMeta = db_mc_getMeta(hContact); + if (hMeta) + if (hwnd == M.FindWindow(hMeta)) + hContact = hMeta; + + if (hwnd == NULL) + hwnd = M.FindWindow(hContact); if (hwnd && M.GetByte(SRMSGMOD, SRMSGSET_SHOWTYPING, SRMSGDEFSET_SHOWTYPING)) preTyping = SendMessage(hwnd, DM_TYPING, 0, mode); -- cgit v1.2.3