summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/contacts.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-19 16:58:01 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-19 16:58:01 +0000
commit8586f966f558d317d79b3ec25d0bf21d3d92498d (patch)
treeb0e7c9e04d8a841cc9eb546372624fb7f1a91799 /protocols/FacebookRM/src/contacts.cpp
parent0e80ad0d4c150fa947849cdad07a7d0d34d7340e (diff)
Facebook: Correctly load contacts on mobile phone that are online right now (also removed old related option)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6936 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp
index 432c00187f..adef0e21b0 100644
--- a/protocols/FacebookRM/src/contacts.cpp
+++ b/protocols/FacebookRM/src/contacts.cpp
@@ -115,7 +115,7 @@ HANDLE FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, boo
std::string homepage = FACEBOOK_URL_PROFILE + fbu->user_id;
setString(hContact, "Homepage", homepage.c_str());
- setString(hContact, "MirVer", fbu->status_id == ID_STATUS_ONTHEPHONE ? FACEBOOK_MOBILE : FACEBOOK_NAME);
+ setTString(hContact, "MirVer", fbu->mobile ? _T(FACEBOOK_CLIENT_MOBILE) : _T(FACEBOOK_CLIENT));
db_unset(hContact, "CList", "MyHandle");
@@ -155,8 +155,8 @@ void FacebookProto::SetAllContactStatuses(int status, bool reset_client)
if (reset_client) {
ptrT mirver( getTStringA(hContact, "MirVer"));
- if (!mirver || _tcscmp(mirver, _T(FACEBOOK_NAME)))
- setTString(hContact, "MirVer", _T(FACEBOOK_NAME));
+ if (!mirver || _tcscmp(mirver, _T(FACEBOOK_CLIENT)))
+ setTString(hContact, "MirVer", _T(FACEBOOK_CLIENT));
}
if (getWord(hContact, "Status", 0) != status)