From 3739d103d4369a36749f5ef4884bf470f8ccf26e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Mar 2015 12:14:36 +0000 Subject: fix for downloading large icons git-svn-id: http://svn.miranda-ng.org/main/trunk@12374 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/avatars.cpp | 2 +- protocols/WhatsApp/src/contacts.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/WhatsApp') 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& data, const std::string &id) -- cgit v1.2.3