diff options
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`. |