summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/WhatsApp/src/avatars.cpp2
-rw-r--r--protocols/WhatsApp/src/contacts.cpp2
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)