diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-05-28 12:51:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-05-28 12:51:11 +0000 |
commit | 2760f36689ec4b0d53e8d24e383c54f80019c5f4 (patch) | |
tree | 9fd83d5c34018a90dc34de20d742a2e31864e12b /protocols | |
parent | c6712dabce7071fc6c4217920bf7797c5bb753f0 (diff) |
Facebook: Small optimalizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@9331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 2 | ||||
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 2fb0d5fb70..276c4474ae 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -92,7 +92,7 @@ MCONTACT FacebookProto::ChatIDToHContact(std::tstring chat_id) MCONTACT FacebookProto::ContactIDToHContact(std::string user_id) { for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) { - if (!IsMyContact(hContact)) + if (isChatRoom(hContact)) continue; ptrA id(getStringA(hContact, FACEBOOK_KEY_ID)); diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index bac50cd048..c4d9f6e79e 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -513,7 +513,7 @@ INT_PTR FacebookProto::OnMind(WPARAM wParam, LPARAM lParam) int FacebookProto::OnDbEventRead(WPARAM contactID, LPARAM dbei)
{
- if (!isOffline()) {
+ if ((IsMyContact(contactID, true)) && !isOffline()) {
ForkThread(&FacebookProto::ReadMessageWorker, (void*)contactID);
}
return 0;
|