diff options
Diffstat (limited to 'protocols/WhatsApp/src/contacts.cpp')
-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);
|