summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/avatars.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-29 13:05:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-29 13:05:35 +0300
commit0770a12fb1d36674053771f2c559c508725090af (patch)
treec9144cce3d78dba371ed97fe99da279f373e1ecd /protocols/Telegram/src/avatars.cpp
parenta95b57678699388a4e40716eacd8af5931574d72 (diff)
fixes #3402 (Telegram: mark read sending doesn't work sometimes)
Diffstat (limited to 'protocols/Telegram/src/avatars.cpp')
-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 66d0710cbc..0253152df0 100644
--- a/protocols/Telegram/src/avatars.cpp
+++ b/protocols/Telegram/src/avatars.cpp
@@ -22,7 +22,7 @@ CMStringW CTelegramProto::GetAvatarFilename(MCONTACT hContact)
CMStringW wszResult(GetAvatarPath());
const wchar_t *szFileType = ProtoGetAvatarExtension(getByte(hContact, "AvatarType", PA_FORMAT_JPEG));
- wszResult.AppendFormat(L"\\%s%s", getMStringW(hContact, DBKEY_ID).c_str(), szFileType);
+ wszResult.AppendFormat(L"\\%lld%s", GetId(hContact), szFileType);
return wszResult;
}