summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_util.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-15 17:16:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-15 17:16:20 +0300
commit1b9b12484af65dbae34eb59baea6c8dc9c685c28 (patch)
tree3db3d83414edee851620ffa479f31e25964529b6 /protocols/JabberG/src/jabber_util.cpp
parent6d375d3e1882590c0a49d8e4970b333e1804618c (diff)
Jabber:
- global vcard hash added to the presence; - "AvatarSaved" setting isn't used anymore, because it's crazy; - when vcard reader writes our own avatar, an update is not send back to the server
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index cfa261de6b..db99565983 100755
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -912,7 +912,7 @@ void __cdecl CJabberProto::LoadHttpAvatars(void* param)
mir_sha1_finish(&sha, digest);
bin2hex(digest, sizeof(digest), buffer);
- ptrA cmpsha(getStringA(ai.hContact, "AvatarSaved"));
+ ptrA cmpsha(getStringA(ai.hContact, "AvatarHash"));
if (cmpsha == nullptr || strnicmp(cmpsha, buffer, sizeof(buffer))) {
wchar_t tszFileName[MAX_PATH];
GetAvatarFileName(ai.hContact, tszFileName, _countof(tszFileName));
@@ -921,7 +921,7 @@ void __cdecl CJabberProto::LoadHttpAvatars(void* param)
if (out != nullptr) {
fwrite(res->pData, res->dataLength, 1, out);
fclose(out);
- setString(ai.hContact, "AvatarSaved", buffer);
+ setString(ai.hContact, "AvatarHash", buffer);
ProtoBroadcastAck(ai.hContact, ACKTYPE_AVATAR, ACKRESULT_SUCCESS, &ai, 0);
debugLogW(L"Broadcast new avatar: %s", ai.filename);
}