summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-04-15 17:43:08 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-04-15 17:43:08 +0300
commitf15a6313c570fc6eedb8f955ce94510438f6be52 (patch)
treea8c50eeabf79b8ea50796f5fd1dd004c5a2230ee /protocols/Telegram/src/utils.cpp
parenta14259eae6700db380f7eab42ba89c76ac2c1541 (diff)
preview folder extracted to the separate directory in profile
Diffstat (limited to 'protocols/Telegram/src/utils.cpp')
-rw-r--r--protocols/Telegram/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index 98890cc791..faf52c94d0 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -449,8 +449,8 @@ CMStringA CTelegramProto::GetMessagePreview(const TD::file *pFile)
auto *pFileId = pFile->remote_->unique_id_.c_str();
auto *pRequest = new TG_FILE_REQUEST(TG_FILE_REQUEST::AVATAR, pFile->id_, pFileId);
- pRequest->m_destPath = GetAvatarPath() + L"\\Preview";
- CreateDirectoryW(pRequest->m_destPath, 0);
+ pRequest->m_destPath = GetPreviewPath();
+ CreateDirectoryTreeW(pRequest->m_destPath);
pRequest->m_fileName.Format(L"{%S}.jpg", pFileId);
{