aboutsummaryrefslogtreecommitdiffstats
path: root/facebook/facebook-api.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-03-29 09:19:19 -0300
committerdequis <dx@dxzone.com.ar>2017-03-29 09:26:26 -0300
commit1629e2f0cfe072118c845e8f7a2fc22005723188 (patch)
treec2eec577c6c013e718106e7d53f1258a67b4e45a /facebook/facebook-api.c
parent9390579fafa917b227059eb5ca7a7b3f4cda1051 (diff)
downloadbitlbee-facebook-1629e2f0cfe072118c845e8f7a2fc22005723188.tar.gz
bitlbee-facebook-1629e2f0cfe072118c845e8f7a2fc22005723188.tar.bz2
bitlbee-facebook-1629e2f0cfe072118c845e8f7a2fc22005723188.tar.xz
Set the MQTT user agent to look like Orca-Android 38.0.0.22.155
Looks like this is what they use to discontinue older versions. An empty user agent is treated as too old. This fixes following error when sending messages: This app version no longer supports messaging. To continue to send and receive messages, please update your app to a newer version or use the mobile web version of Facebook.
Diffstat (limited to 'facebook/facebook-api.c')
-rw-r--r--facebook/facebook-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c
index eb0e8b4..341ac19 100644
--- a/facebook/facebook-api.c
+++ b/facebook/facebook-api.c
@@ -877,7 +877,7 @@ fb_api_cb_mqtt_open(FbMqtt *mqtt, gpointer data)
/* Write the information string */
fb_thrift_write_field(thft, FB_THRIFT_TYPE_STRING, 2, 1);
- fb_thrift_write_str(thft, "");
+ fb_thrift_write_str(thft, FB_API_MQTT_AGENT);
/* Write the UNKNOWN ("cp"?) */
fb_thrift_write_field(thft, FB_THRIFT_TYPE_I64, 3, 2);