diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-17 13:22:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-17 13:22:17 +0300 |
commit | 2444f74aeaa00db13dd0cdb44d694cad09620efa (patch) | |
tree | ad1d2339fe632d9025f71c376f375fc242540c26 | |
parent | ab32043a6046fcc8954c726a446a16a59bb71f04 (diff) |
Scriver: fix for a bug with UTN in message dialog
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 14 | ||||
-rw-r--r-- | plugins/Scriver/src/version.h | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 921247b76a..0ef3c03a53 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -195,7 +195,19 @@ static int TypingMessage(WPARAM hContact, LPARAM lParam) else if (lParam && (g_dat.flags2 & SMF2_SHOWTYPINGTRAY)) {
wchar_t szTip[256];
mir_snwprintf(szTip, TranslateT("%s is typing a message"), pcli->pfnGetContactDisplayName(hContact, 0));
- Clist_TrayNotifyW(nullptr, TranslateT("Typing notification"), szTip, NIIF_INFO, 1000 * 4);
+ if (g_dat.flags2 & SMF2_SHOWTYPINGCLIST) {
+ pcli->pfnRemoveEvent(hContact, 1);
+
+ CLISTEVENT cle = {};
+ cle.hContact = hContact;
+ cle.hDbEvent = 1;
+ cle.flags = CLEF_ONLYAFEW | CLEF_TCHAR;
+ cle.hIcon = GetCachedIcon("scriver_TYPING");
+ cle.pszService = "SRMsg/TypingMessage";
+ cle.ptszTooltip = szTip;
+ pcli->pfnAddEvent(&cle);
+ }
+ else Clist_TrayNotifyW(nullptr, TranslateT("Typing notification"), szTip, NIIF_INFO, 1000 * 4);
}
return 0;
}
diff --git a/plugins/Scriver/src/version.h b/plugins/Scriver/src/version.h index 0ef57f0fb8..6facb71624 100644 --- a/plugins/Scriver/src/version.h +++ b/plugins/Scriver/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 3 #define __MINOR_VERSION 0 #define __RELEASE_NUM 1 -#define __BUILD_NUM 5 +#define __BUILD_NUM 6 #include <stdver.h> |