From 148a177548e508e81314d7b13a2c0fa9385ebd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 13 Dec 2013 09:24:47 +0000 Subject: Facebook: don't notify errors marked as "silent" by Facebook git-svn-id: http://svn.miranda-ng.org/main/trunk@7168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index a0770b1783..bc18e52ddb 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -143,13 +143,15 @@ http::response facebook_client::flap(RequestType request_type, std::string* requ title = ptrA( mir_utf8decodeA(title.c_str())); } + bool silent = resp.data.find("\"silentError\":1") != std::string::npos; + resp.error_number = error_num; resp.error_text = error; resp.error_title = title; resp.code = HTTP_CODE_FAKE_ERROR; parent->debugLogA(" ! ! Received Facebook error: %d -- %s", error_num, error.c_str()); - if (notify_errors(request_type)) + if (notify_errors(request_type) && !silent) client_notify(_A2T(error.c_str())); } } -- cgit v1.2.3