From 0770a12fb1d36674053771f2c559c508725090af Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Mar 2023 13:05:35 +0300 Subject: fixes #3402 (Telegram: mark read sending doesn't work sometimes) --- protocols/Telegram/src/avatars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Telegram/src/avatars.cpp') 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; } -- cgit v1.2.3