diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-31 20:36:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-31 20:36:43 +0000 |
commit | 9c4a4325c19a5d51a8b938fc51c04ec07d5a37dc (patch) | |
tree | d1d23696ceb678ee840d5d20645a7854cfc3d1df | |
parent | caab4ff002b08d09ef78871ee76c205f0ab2c5ec (diff) |
we never add self contact
git-svn-id: http://svn.miranda-ng.org/main/trunk@11966 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/WhatsApp/src/contacts.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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);
|