From 8ababad49b71c33ab400401098483f206b006b5c Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Sun, 14 Jun 2020 14:28:54 +0300
Subject: =?UTF-8?q?fixes=20#2451=20(Clist=5Fmodern=20=D0=B2=20=D1=81=D0=BE?=
 =?UTF-8?q?=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B5=20=D0=BA=D0=BE?=
 =?UTF-8?q?=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D0=BE=D0=B2=20"=D0=9F=D0=BE=20?=
 =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B5=D0=BC=D1=83=20?=
 =?UTF-8?q?=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8E"=20?=
 =?UTF-8?q?=D1=83=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=20=D1=82?=
 =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=B2=D1=85=D0=BE=D0=B4=D1=8F?=
 =?UTF-8?q?=D1=89=D0=B8=D0=B5=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?=
 =?UTF-8?q?=D0=B8=D1=8F,=20=D0=BE=D1=81=D1=82=D0=B0=D0=BB=D1=8C=D0=BD?=
 =?UTF-8?q?=D1=8B=D0=B5=20=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D1=8F=20?=
 =?UTF-8?q?=D0=BD=D0=B5=20=D1=83=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D1=8E?=
 =?UTF-8?q?=D1=82=D1=81=D1=8F.)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 plugins/Clist_modern/src/modern_clc.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'plugins')

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)
-- 
cgit v1.2.3