summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/contacts.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:00 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:00 +0000
commitd9afe7697ba309f6d78b61adea474942c0b55424 (patch)
tree5f1c65957f29d0fee1d381859c21ad58b562304b /protocols/FacebookRM/src/contacts.cpp
parent3000e4130b54028e8b10040fda3d9fc6f7302959 (diff)
Facebook: distinguish more types of clients and don't reset old client at login/logoff
git-svn-id: http://svn.miranda-ng.org/main/trunk@6940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp
index adef0e21b0..c7487cd71d 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());
- setTString(hContact, "MirVer", fbu->mobile ? _T(FACEBOOK_CLIENT_MOBILE) : _T(FACEBOOK_CLIENT));
+ setTString(hContact, "MirVer", fbu->getMirVer());
db_unset(hContact, "CList", "MyHandle");
@@ -147,18 +147,12 @@ HANDLE FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, boo
return 0;
}
-void FacebookProto::SetAllContactStatuses(int status, bool reset_client)
+void FacebookProto::SetAllContactStatuses(int status)
{
for (HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
if (isChatRoom(hContact))
continue;
- if (reset_client) {
- ptrT mirver( getTStringA(hContact, "MirVer"));
- if (!mirver || _tcscmp(mirver, _T(FACEBOOK_CLIENT)))
- setTString(hContact, "MirVer", _T(FACEBOOK_CLIENT));
- }
-
if (getWord(hContact, "Status", 0) != status)
setWord(hContact, "Status", status);
}