diff options
author | Marius Halden <marius.h@lden.org> | 2017-03-29 14:44:52 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-03-29 14:44:52 +0200 |
commit | b6ed8a8791605d882a8e389ea0b9db2b05713dd1 (patch) | |
tree | bcf1deab0e1a8d72ff5173276dcb03fb70fdff7b /facebook/facebook-api.h | |
parent | 690567817968396a5a97a7a7c53b25d80a9366dd (diff) | |
parent | af132a8990f0928b12f68172b21403df08207f4a (diff) | |
download | bitlbee-facebook-b6ed8a8791605d882a8e389ea0b9db2b05713dd1.tar.gz bitlbee-facebook-b6ed8a8791605d882a8e389ea0b9db2b05713dd1.tar.bz2 bitlbee-facebook-b6ed8a8791605d882a8e389ea0b9db2b05713dd1.tar.xz |
Merge branch 'master' into track-messages
Diffstat (limited to 'facebook/facebook-api.h')
-rw-r--r-- | facebook/facebook-api.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h index b6a2812..fa38d3d 100644 --- a/facebook/facebook-api.h +++ b/facebook/facebook-api.h @@ -96,6 +96,22 @@ #define FB_API_AGENT "Facebook plugin / BitlBee / " PACKAGE_VERSION /** + * FB_API_MQTT_AGENT + * + * The client information string sent in the MQTT CONNECT message + * + * We announce ourselves as compatible with Orca-Android 38.0 since that's the + * closest version to the last major protocol update. Some parts use older + * features, some parts use newer ones. + * + * Fun fact: this version sends old-style MQIsdp CONNECT messages for the first + * connection, with JSON payloads instead of compressed thrift. + */ + +#define FB_API_MQTT_AGENT FB_API_AGENT " [FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]" + + +/** * FB_API_URL_ATTACH: * * The URL for attachment URL requests. @@ -136,7 +152,7 @@ * * The URL for thread management requests. */ -#define FB_API_URL_THREADS FB_API_GHOST "/me/threads" +#define FB_API_URL_THREADS FB_API_GHOST "/me/group_threads" /** * FB_API_URL_TOPIC: @@ -273,6 +289,16 @@ #define FB_API_QUERY_THREADS 10153919752026729 /** + * FB_API_QUERY_SEQ_ID: + * + * A variant of ThreadListQuery with sequence ID + * + * TODO: parameters. + */ + +#define FB_API_QUERY_SEQ_ID 10155268192741729 + +/** * FB_API_QUERY_XMA: * * The query hash for the `XMAQuery`. |