summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index eb1bd02d95..005780b45f 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -444,7 +444,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
JSONNODE *threadid = json_get(it, "tid");
if (threadid != NULL) { // multi user chat
- if (proto->m_disableChat)
+ if (!proto->m_enableChat)
continue;
std::tstring tid = json_as_string(threadid);
@@ -606,7 +606,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
proto->StopTyping(hContact);
} else if (t == "ttyp") {
// multi chat typing notification
- if (proto->m_disableChat)
+ if (!proto->m_enableChat)
continue;
JSONNODE *from_ = json_get(it, "from");
@@ -688,7 +688,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
}*/
} else if (t == "mercury") {
// rename multi user chat, ...
- if (proto->m_disableChat)
+ if (!proto->m_enableChat)
continue;
JSONNODE *actions_ = json_get(it, "actions");