summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/contacts.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-12-01 13:32:25 +0000
committerRobert Pösel <robyer@seznam.cz>2014-12-01 13:32:25 +0000
commitf7782fbf614361339617da21e6220044ffcf6822 (patch)
tree4693e83c7bf9ea43c9ebe7c1ad1b17c1f90589a1 /protocols/FacebookRM/src/contacts.cpp
parente59cf737e53afb22c054a6928412f085ba1ac26c (diff)
Facebook: Fix sending private message to user in chat, which is not in contactlist yet
git-svn-id: http://svn.miranda-ng.org/main/trunk@11193 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp
index 5da990e616..61acec9b56 100644
--- a/protocols/FacebookRM/src/contacts.cpp
+++ b/protocols/FacebookRM/src/contacts.cpp
@@ -326,7 +326,7 @@ void FacebookProto::LoadChatInfo(facebook_chatroom *fbc)
}
-MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, bool force_add)
+MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, bool force_add, bool add_temporarily)
{
// First, check if this contact exists (and if does, just return it)
if (!force_add) {
@@ -347,6 +347,11 @@ MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, b
// If we have some contact, we'll save its data
if (hContact) {
// Save these values only when adding new contact, not when updating existing
+ if (add_temporarily) {
+ db_set_b(hContact, "Clist", "Hidden", 1);
+ db_set_b(hContact, "Clist", "NotOnList", 1);
+ }
+
setString(hContact, FACEBOOK_KEY_ID, fbu->user_id.c_str());
std::string homepage = FACEBOOK_URL_PROFILE + fbu->user_id;