From f3a873e47ed64d570fd6c678a1d815b13711d017 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 8 Feb 2015 16:01:50 +0000 Subject: fix for sending contacts into chats git-svn-id: http://svn.miranda-ng.org/main/trunk@12056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/chat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/WhatsApp/src/chat.cpp') diff --git a/protocols/WhatsApp/src/chat.cpp b/protocols/WhatsApp/src/chat.cpp index c34f9e8e1b..f5d1545c04 100644 --- a/protocols/WhatsApp/src/chat.cpp +++ b/protocols/WhatsApp/src/chat.cpp @@ -327,6 +327,12 @@ void WhatsAppProto::onGroupInfo(const std::string &jid, const std::string &owner void WhatsAppProto::onGroupMessage(const FMessage &pMsg) { + // we need to add a contact, so there's no difference at all + if (pMsg.media_wa_type == FMessage::WA_TYPE_CONTACT) { + onMessageForMe(pMsg); + return; + } + WAChatInfo *pInfo = SafeGetChat(pMsg.key.remote_jid); if (pInfo == NULL) { pInfo = InitChat(pMsg.key.remote_jid, ""); -- cgit v1.2.3