From 83bc4b803968c60b358620948d148455bb4e3e75 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Mar 2023 15:19:01 +0300 Subject: typo fix --- protocols/Telegram/src/avatars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Telegram/src') 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"; -- cgit v1.2.3