From 13887196e493841b2e141e316987de2299471bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 17 Jul 2016 09:16:10 +0000 Subject: Facebook: Fix missing else (broken in r16843); version bump This missing else might have caused various issues with getting updates from FB, because when "type" was "continue", "lb", or "heartbeat", plugin was wrongly increasing the seq number - so then potentially missing some updates. git-svn-id: http://svn.miranda-ng.org/main/trunk@17103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 4 ++-- protocols/FacebookRM/src/version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 0196d58c57..d0c62cae5f 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -1309,7 +1309,7 @@ bool facebook_client::channel() this->chat_sticky_num_ = utils::text::source_get_value2(&resp.data, "\"sticky\":\"", "\""); parent->debugLogA(" Got self sticky number: %s", this->chat_sticky_num_.c_str()); } - if (type == "refresh") { + else if (type == "refresh") { // Requested relogin (due to some settings change, removing this session, etc.) parent->debugLogA("!!! Requested refresh"); @@ -1320,7 +1320,7 @@ bool facebook_client::channel() parent->debugLogA(" Got reconnect reason: %s", this->chat_reconnect_reason_.c_str()); return this->reconnect(); - } + } else if (!type.empty()) { // for "msg", "fullReload" and maybe also other types // Something has been received, throw to new thread to process std::string* response_data = new std::string(resp.data); diff --git a/protocols/FacebookRM/src/version.h b/protocols/FacebookRM/src/version.h index 6ac30259db..debfa9ac95 100644 --- a/protocols/FacebookRM/src/version.h +++ b/protocols/FacebookRM/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 14 -#define __BUILD_NUM 2 +#define __BUILD_NUM 3 #include -- cgit v1.2.3