From e441a31e9f912fc8e9244d16560565559b1924d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2019 23:43:06 +0300 Subject: end of manual experiments with CList/NotOnList --- protocols/Sametime/src/sametime_proto.cpp | 4 ++-- protocols/Sametime/src/userlist.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Sametime') diff --git a/protocols/Sametime/src/sametime_proto.cpp b/protocols/Sametime/src/sametime_proto.cpp index ca657be854..db816ad08b 100644 --- a/protocols/Sametime/src/sametime_proto.cpp +++ b/protocols/Sametime/src/sametime_proto.cpp @@ -171,7 +171,7 @@ int CSametimeProto::RecvFile(MCONTACT hContact, PROTORECVFILE* pre) debugLogW(L"CSametimeProto::RecvFile() hContact=[%x]", hContact); Contact_Hide(hContact, false); - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); return CSuper::RecvFile(hContact, pre); } @@ -181,7 +181,7 @@ MEVENT CSametimeProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) debugLogW(L"CSametimeProto::RecvMsg() hContact=[%x]", hContact); Contact_Hide(hContact, false); - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); return CSuper::RecvMsg(hContact, pre); } diff --git a/protocols/Sametime/src/userlist.cpp b/protocols/Sametime/src/userlist.cpp index 0ebbce3d22..94545c4d13 100644 --- a/protocols/Sametime/src/userlist.cpp +++ b/protocols/Sametime/src/userlist.cpp @@ -69,7 +69,7 @@ MCONTACT CSametimeProto::AddContact(mwSametimeUser* user, bool temporary) new_contact = true; } else if (!temporary) { - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); Contact_Hide(hContact, false); } @@ -104,11 +104,11 @@ MCONTACT CSametimeProto::AddContact(mwSametimeUser* user, bool temporary) } if (temporary) { - db_set_b(hContact, "CList", "NotOnList", 1); + Contact_RemoveFromList(hContact); Contact_Hide(hContact); } else { - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); Contact_Hide(hContact, false); } -- cgit v1.2.3