diff options
-rw-r--r-- | src/mir_app/src/srmm_main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */ #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; } |