From 500dd4848842f6d4207584417448586d060fbd6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Jul 2022 18:07:27 +0300 Subject: Contact: group of functions gathered into the personal namespace --- protocols/Twitter/src/connection.cpp | 2 +- protocols/Twitter/src/contacts.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index b758fac9e3..78a7e9be4f 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -576,7 +576,7 @@ void CTwitterProto::UpdateMessages(bool pre_read) MCONTACT hContact = FindContactById(sender.c_str()); if (hContact == INVALID_CONTACT_ID) { hContact = AddToClientList(sender.c_str(), ""); - Contact_RemoveFromList(hContact); + Contact::RemoveFromList(hContact); } std::string text = msgCreate["message_data"]["text"].as_string(); diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index 6a75e1706b..2a15a4bd48 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 (Contact_IsGroupChat(hContact)) + 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 (Contact_IsGroupChat(hContact)) + if (Contact::IsGroupChat(hContact)) continue; if (getMStringA(hContact, TWITTER_KEY_ID) == id) -- cgit v1.2.3