From 3b3e0ae47024887e32db4cb657b8dcdb11d66d4c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 31 Oct 2022 22:28:18 +0300 Subject: =?UTF-8?q?fixes=20#3230=20(WhatsApp:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=83=D1=87?= =?UTF-8?q?=D1=91=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=81=D1=82=D0=B0=D1=91=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D0=BA=D1=8D=D1=88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/WhatsApp/src/proto.cpp | 8 ++++++++ protocols/WhatsApp/src/proto.h | 1 + 2 files changed, 9 insertions(+) (limited to 'protocols/WhatsApp/src') diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index e28d53a8a2..7a74dadba5 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -102,6 +102,14 @@ WhatsAppProto::~WhatsAppProto() { } +///////////////////////////////////////////////////////////////////////////////////////// +// OnErase - remove temporary folder for account + +void WhatsAppProto::OnErase() +{ + DeleteDirectoryTreeW(CMStringW(VARSW(L"%miranda_userdata%")) + L"\\" + _A2T(m_szModuleName), false); +} + ///////////////////////////////////////////////////////////////////////////////////////// // OnModulesLoaded emulator for an account diff --git a/protocols/WhatsApp/src/proto.h b/protocols/WhatsApp/src/proto.h index bddf804014..521bea0f3c 100644 --- a/protocols/WhatsApp/src/proto.h +++ b/protocols/WhatsApp/src/proto.h @@ -414,6 +414,7 @@ public: int SetStatus(int iNewStatus) override; int UserIsTyping(MCONTACT hContact, int type) override; + void OnErase() override; void OnModulesLoaded() override; // Services //////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3