From 2760f36689ec4b0d53e8d24e383c54f80019c5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 28 May 2014 12:51:11 +0000 Subject: Facebook: Small optimalizations git-svn-id: http://svn.miranda-ng.org/main/trunk@9331 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/contacts.cpp | 2 +- protocols/FacebookRM/src/proto.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM') 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; -- cgit v1.2.3