diff options
Diffstat (limited to 'protocols/WhatsApp/src')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 8 | ||||
-rw-r--r-- | protocols/WhatsApp/src/proto.h | 1 |
2 files changed, 9 insertions, 0 deletions
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 @@ -103,6 +103,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 void WhatsAppProto::OnModulesLoaded() 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 //////////////////////////////////////////////////////////////////////////// |