From 7cf07cdfae771f29937815f5dafcb74af7d35664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 6 Jul 2014 07:53:52 +0000 Subject: Facebook: Try to fix automatic logout on error in chat_state() git-svn-id: http://svn.miranda-ng.org/main/trunk@9697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 238da89732..32b61499f8 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -976,7 +976,10 @@ bool facebook_client::chat_state(bool online) data += "&fb_dtsg=" + (!dtsg_.empty() ? dtsg_ : "0"); data += "&phstamp=0&__user=" + self_.user_id; http::response resp = flap(REQUEST_VISIBILITY, &data); - + + if (!resp.error_number) + return handle_error("chat_state"); + return handle_success("chat_state"); } -- cgit v1.2.3