diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-27 23:43:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-27 23:43:06 +0300 |
commit | e441a31e9f912fc8e9244d16560565559b1924d2 (patch) | |
tree | e9d47703f0e56bb5745e7e4e842d14ce989fe86d /protocols/FacebookRM/src | |
parent | 91811190c158e4ff97cc94ef93415c12ddf738ed (diff) |
end of manual experiments with CList/NotOnList
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 4 | ||||
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 4c03674cb1..2d4c81513e 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -235,7 +235,7 @@ MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, bool force_add, boo // Save these values only when adding new contact, not when updating existing if (add_temporarily) { Contact_Hide(hContact); - db_set_b(hContact, "CList", "NotOnList", 1); + Contact_RemoveFromList(hContact); } setString(hContact, FACEBOOK_KEY_ID, fbu->user_id.c_str()); @@ -415,7 +415,7 @@ void FacebookProto::IgnoreFriendshipRequest(void *data) NotifyEvent(m_tszUserName, TranslateT("Request for friendship was ignored."), 0, EVENT_FRIENDSHIP); // Delete this contact, if he's temporary - if (db_get_b(hContact, "CList", "NotOnList", 0)) + if (!Contact_OnList(hContact)) db_delete_contact(hContact); } else facy.client_notify(TranslateT("Error occurred when ignoring friendship request.")); diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index dc9655839b..ef5f0f6399 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -281,9 +281,9 @@ MCONTACT FacebookProto::AddToList(int flags, PROTOSEARCHRESULT* psr) MCONTACT hContact = AddToContactList(&fbu, false, add_temporarily); // Reset NotOnList flag if present and we're adding this contact not temporarily - if (hContact && !add_temporarily && db_get_b(hContact, "CList", "NotOnList", 0)) { + if (hContact && !add_temporarily && !Contact_OnList(hContact)) { Contact_Hide(hContact, false); - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); } return hContact; |