diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-27 18:23:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-27 18:23:10 +0300 |
commit | cf060f6cb5fe153912bb8889c628c6087715e8ef (patch) | |
tree | 7dbfc9627b773df0e2b12d57eb3196ea6cc95b53 | |
parent | 9a7849018ffdd78512915678f64dad07dbdcc8c7 (diff) |
fixes #3226 (WhatsApp: для кэша аватаров используется не внутреннее имя учётки, а обычное имя)
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index 25f1671936..5b1a575fff 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -79,7 +79,7 @@ WhatsAppProto::WhatsAppProto(const char *proto_name, const wchar_t *username) : CreateDirectoryTreeW(CMStringW(VARSW(L"%miranda_userdata%")) + L"\\" + _A2T(m_szModuleName)); // Avatars folder - m_tszAvatarFolder = CMStringW(VARSW(L"%miranda_avatarcache%")) + L"\\" + m_tszUserName; + m_tszAvatarFolder = CMStringW(VARSW(L"%miranda_avatarcache%")) + L"\\" + _A2T(m_szModuleName); DWORD dwAttributes = GetFileAttributes(m_tszAvatarFolder.c_str()); if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) CreateDirectoryTreeW(m_tszAvatarFolder.c_str()); |