From cd4272ca22d47cdf673bfb0e5ec353acca3d9569 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 16 Jul 2022 21:23:06 +0300 Subject: Contact_IsGroupChat - a helper to detect chat rooms --- protocols/Twitter/src/contacts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index 29e6bfef24..6a75e1706b 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -211,7 +211,7 @@ bool CTwitterProto::IsMyContact(MCONTACT hContact, bool include_chat) MCONTACT CTwitterProto::UsernameToHContact(const char *name) { for (auto &hContact : AccContacts()) { - if (getByte(hContact, "ChatRoom")) + if (Contact_IsGroupChat(hContact)) continue; if (getMStringA(hContact, TWITTER_KEY_UN) == name) @@ -224,7 +224,7 @@ MCONTACT CTwitterProto::UsernameToHContact(const char *name) MCONTACT CTwitterProto::FindContactById(const char *id) { for (auto &hContact : AccContacts()) { - if (getByte(hContact, "ChatRoom")) + if (Contact_IsGroupChat(hContact)) continue; if (getMStringA(hContact, TWITTER_KEY_ID) == id) -- cgit v1.2.3