summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-17 15:19:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-17 15:19:01 +0300
commit83bc4b803968c60b358620948d148455bb4e3e75 (patch)
treee9e5477efadea5637918a402db082f3e9b03eaff /protocols
parent60a3976ffcba18b69e1da3a22e474e15b672aab2 (diff)
typo fix
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/avatars.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/avatars.cpp b/protocols/Telegram/src/avatars.cpp
index b845d536de..7e1d117ed7 100644
--- a/protocols/Telegram/src/avatars.cpp
+++ b/protocols/Telegram/src/avatars.cpp
@@ -90,7 +90,7 @@ void CTelegramProto::ProcessFile(TD::updateFile *pObj)
CMStringW wszFullName = it->m_destPath + L"\\" + it->m_fileName;
if (it->m_type == it->AVATAR) {
- if (it->m_destPath.Right(5).MakeLower() == L".webp") {
+ if (it->m_fileName.Right(5).MakeLower() == L".webp") {
if (auto *pImage = FreeImage_LoadU(FIF_WEBP, wszExistingFile)) {
wszFullName.Truncate(wszFullName.GetLength() - 5);
wszFullName += L".png";