From 4ef6612404549093658e933cac68e412d69765b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 10 Nov 2013 19:39:55 +0000 Subject: Facebook: don't switch typing contacts to online when we are not online git-svn-id: http://svn.miranda-ng.org/main/trunk@6861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 3ae668911e..3b56b00abb 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -591,7 +591,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa HANDLE hContact = proto->AddToContactList(&fbu, CONTACT_FRIEND); - if (proto->getWord(hContact, "Status", 0) == ID_STATUS_OFFLINE) + if (proto->isOnline() && proto->getWord(hContact, "Status", 0) == ID_STATUS_OFFLINE) proto->setWord(hContact, "Status", ID_STATUS_ONLINE); JSONNODE *st = json_get(it, "st"); -- cgit v1.2.3