diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-10 12:14:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-10 12:14:36 +0000 |
commit | 3739d103d4369a36749f5ef4884bf470f8ccf26e (patch) | |
tree | 8ddbed5abdf5c876bc6070408e5073a7750cd4cb /protocols/WhatsApp/src | |
parent | 6aad3d4d364d4b459409f893852aa75988099cff (diff) |
fix for downloading large icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@12374 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src')
-rw-r--r-- | protocols/WhatsApp/src/avatars.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsApp/src/contacts.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/avatars.cpp b/protocols/WhatsApp/src/avatars.cpp index 2694b278b6..c9797799a3 100644 --- a/protocols/WhatsApp/src/avatars.cpp +++ b/protocols/WhatsApp/src/avatars.cpp @@ -15,7 +15,7 @@ INT_PTR WhatsAppProto::GetAvatarInfo(WPARAM wParam, LPARAM lParam) ptrA szAvatarId(getStringA(AI->hContact, WHATSAPP_KEY_AVATAR_ID));
if (szAvatarId == NULL || (wParam & GAIF_FORCE) != 0)
if (AI->hContact != NULL && m_pConnection != NULL) {
- m_pConnection->sendGetPicture(id, "preview");
+ m_pConnection->sendGetPicture(id, "image");
return GAIR_WAITFOR;
}
diff --git a/protocols/WhatsApp/src/contacts.cpp b/protocols/WhatsApp/src/contacts.cpp index f021b575c6..30a87fe73a 100644 --- a/protocols/WhatsApp/src/contacts.cpp +++ b/protocols/WhatsApp/src/contacts.cpp @@ -150,7 +150,7 @@ void WhatsAppProto::onContactChanged(const std::string &jid, bool added) void WhatsAppProto::onPictureChanged(const std::string &jid, const std::string &id, bool set)
{
if (isOnline())
- m_pConnection->sendGetPicture(jid.c_str(), "preview");
+ m_pConnection->sendGetPicture(jid.c_str(), "image");
}
void WhatsAppProto::onSendGetPicture(const std::string &jid, const std::vector<unsigned char>& data, const std::string &id)
|