summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/contacts.cpp')
-rw-r--r--protocols/WhatsApp/src/contacts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/contacts.cpp b/protocols/WhatsApp/src/contacts.cpp
index 2cdc0effc9..8ed8b0e918 100644
--- a/protocols/WhatsApp/src/contacts.cpp
+++ b/protocols/WhatsApp/src/contacts.cpp
@@ -8,7 +8,7 @@ bool WhatsAppProto::IsMyContact(HANDLE hContact, bool include_chat)
if( include_chat )
return true;
- return getByte(hContact, "ChatRoom", 0) == 0;
+ return !isChatRoom(hContact);
}
return false;
@@ -131,7 +131,7 @@ HANDLE WhatsAppProto::ContactIDToHContact(const std::string& phoneNumber)
if(!IsMyContact(hContact, true))
continue;
- const char* id = getByte(hContact, "ChatRoom", 0) > 0 ? idForChat : idForContact;
+ const char* id = isChatRoom(hContact) ? idForChat : idForContact;
DBVARIANT dbv;
if( !getString(hContact, id, &dbv))