summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/messages.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-08 16:01:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-08 16:01:50 +0000
commitf3a873e47ed64d570fd6c678a1d815b13711d017 (patch)
treebba4e293d4ba0a2eb91e4b75608de328f61e3b07 /protocols/WhatsApp/src/messages.cpp
parent149298bd03dcfce00815d798c9f670e8ea24e7e0 (diff)
fix for sending contacts into chats
git-svn-id: http://svn.miranda-ng.org/main/trunk@12056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/messages.cpp')
-rw-r--r--protocols/WhatsApp/src/messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/messages.cpp b/protocols/WhatsApp/src/messages.cpp
index dd32451850..390ad9a5dc 100644
--- a/protocols/WhatsApp/src/messages.cpp
+++ b/protocols/WhatsApp/src/messages.cpp
@@ -11,7 +11,7 @@ void WhatsAppProto::onMessageForMe(const FMessage &pMsg)
{
// someone sent us a contact. launch contact addition dialog
if (pMsg.media_wa_type == FMessage::WA_TYPE_CONTACT) {
- MCONTACT hContact = AddToContactList(pMsg.remote_resource, pMsg.media_name.c_str());
+ MCONTACT hContact = AddToContactList(pMsg.media_url, pMsg.media_name.c_str());
ADDCONTACTSTRUCT acs = { 0 };
acs.handleType = HANDLE_CONTACT;