diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-10 20:03:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-10 20:03:31 +0000 |
commit | ab8295e821602d7c46afc5900af0ccebd7df8617 (patch) | |
tree | 79b81f0848337c65a16f7e2d50a8950f83ab8d0d | |
parent | 422404e8ad588e3d8760adf543c40c1ed4280012 (diff) |
still trying...
git-svn-id: http://svn.miranda-ng.org/main/trunk@9765 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 03ba90757a..bdf6efb0a5 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -232,14 +232,13 @@ int CMimAPI::TypingMessage(WPARAM hContact, LPARAM mode) int issplit = 1, foundWin = 0, preTyping = 0; BOOL fShowOnClist = TRUE; - HWND hwnd = NULL; + HWND hwnd = M.FindWindow(hContact); MCONTACT hMeta = db_mc_getMeta(hContact); - if (hMeta) - if (hwnd = M.FindWindow(hMeta)) - hContact = hMeta; - - if (hwnd == NULL) - hwnd = M.FindWindow(hContact); + if (hMeta) { + if (!hwnd) + hwnd = M.FindWindow(hMeta); + hContact = hMeta; + } if (hwnd && M.GetByte(SRMSGMOD, SRMSGSET_SHOWTYPING, SRMSGDEFSET_SHOWTYPING)) preTyping = SendMessage(hwnd, DM_TYPING, 0, mode); |