From 9c4a4325c19a5d51a8b938fc51c04ec07d5a37dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 31 Jan 2015 20:36:43 +0000 Subject: we never add self contact git-svn-id: http://svn.miranda-ng.org/main/trunk@11966 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/contacts.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/WhatsApp') diff --git a/protocols/WhatsApp/src/contacts.cpp b/protocols/WhatsApp/src/contacts.cpp index 487afc6321..f3c93204e6 100644 --- a/protocols/WhatsApp/src/contacts.cpp +++ b/protocols/WhatsApp/src/contacts.cpp @@ -15,6 +15,9 @@ bool WhatsAppProto::IsMyContact(MCONTACT hContact, bool include_chat) MCONTACT WhatsAppProto::AddToContactList(const std::string& jid, BYTE , bool dont_check, const char *new_name, bool isChatRoom, bool isHidden) { + if (jid == m_szJid) + return NULL; + if (!dont_check) { // First, check if this contact exists MCONTACT hContact = ContactIDToHContact(jid); -- cgit v1.2.3