diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-14 14:28:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-14 14:28:54 +0300 |
commit | 8ababad49b71c33ab400401098483f206b006b5c (patch) | |
tree | 9e8fbcbe839abfeac8c1a13e054926ed474e184e /plugins/Clist_modern | |
parent | 52e4ddcd83b3b64bcf97fdfcfa1120c87b7b3eb4 (diff) |
fixes #2451 (Clist_modern в сортировке контактов "По последнему сообщению" учитывает только входящие сообщения, остальные события не учитываются.)
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 72f00bc572..27b0dbbbdb 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -153,13 +153,13 @@ static int clcHookSettingChanged(WPARAM hContact, LPARAM lParam) return 0;
}
-static int clcHookDbEventAdded(WPARAM hContact, LPARAM lParam)
+static int clcHookDbEventAdded(WPARAM hContact, LPARAM hDbEvent)
{
g_CluiData.t_now = time(0);
- if (hContact && lParam) {
+ if (hContact && hDbEvent) {
DBEVENTINFO dbei = {};
- db_event_get(lParam, &dbei);
- if (dbei.eventType == EVENTTYPE_MESSAGE && !(dbei.flags & DBEF_SENT)) {
+ db_event_get(hDbEvent, &dbei);
+ if ((dbei.eventType == EVENTTYPE_MESSAGE || dbei.eventType == EVENTTYPE_FILE) && !(dbei.flags & DBEF_SENT)) {
g_plugin.setDword(hContact, "mf_lastmsg", dbei.timestamp);
ClcCacheEntry *pdnce = Clist_GetCacheEntry(hContact);
if (pdnce)
|