From 6ab8095788096969e9abea7be524b10d306d8132 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Dec 2023 11:38:31 +0300 Subject: =?UTF-8?q?fixes=20#4017=20(=D0=A1=D0=BE=D0=B1=D1=8B=D1=82=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B2=D1=85=D0=BE=D0=B4=D0=B0/=D0=B2=D1=8B=D1=85?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=B2=20=D1=87=D0=B0=D1=82=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=8E=D1=82=D1=81=D1=8F=20=D0=B2=20=D0=B6?= =?UTF-8?q?=D1=83=D1=80=D0=BD=D0=B0=D0=BB=D0=B5=20=D0=B4=D0=B0=D0=B6=D0=B5?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D0=BE=D1=87=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D0=BA=D0=B8=20=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8=D0=B8?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/srmm_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mir_app/src/srmm_main.cpp b/src/mir_app/src/srmm_main.cpp index 54fe37b369..677d3e5cda 100644 --- a/src/mir_app/src/srmm_main.cpp +++ b/src/mir_app/src/srmm_main.cpp @@ -17,6 +17,7 @@ along with this program. If not, see . */ #include "stdafx.h" +#include "chat.h" HCURSOR g_hCurHyperlinkHand; HANDLE hHookIconsChanged, hHookIconPressedEvt, hHookSrmmEvent; @@ -42,6 +43,11 @@ static INT_PTR svcEmptyHistory(WPARAM hContact, LPARAM lParam) DB::ECPTR pCursor(DB::Events(hContact)); while (pCursor.FetchNext()) pCursor.DeleteEvent(); + + if (Contact::IsGroupChat(hContact)) + if (auto *si = SM_FindSessionByContact(hContact)) + Chat_EmptyHistory(si); + return 0; } -- cgit v1.2.3