summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-10 19:17:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-10 19:17:10 +0000
commitbcff69ce84b3d723369526d4872d4373ecfe0ede (patch)
tree20b22f0e84a41539c4ef65947d232b1719c8430d /plugins/TabSRMM/src/mim.cpp
parentfaef58e67cca3e6fe21f2ff53abcde06a3fa9ec5 (diff)
fix for typing popups
git-svn-id: http://svn.miranda-ng.org/main/trunk@9763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r--plugins/TabSRMM/src/mim.cpp11
1 files changed, 8 insertions, 3 deletions
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);