summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp2
-rw-r--r--protocols/FacebookRM/src/proto.cpp2
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;