summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-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);
{