summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-08 22:25:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-08 22:25:39 +0300
commit1e5ae8efefc6f50082c1c1734c763aab2fb1b7f5 (patch)
tree3c6988ab32b6458289a830d7bf544a8357119246 /protocols/FacebookRM/src/json.cpp
parent2f058ad0b6a6df7074f5ca05b37b8f4717d9eb13 (diff)
adds support for exiting groupchats
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 69dd1e02fa..ee743ec2f4 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -103,6 +103,10 @@ void FacebookProto::ParseMessageType(facebook_message &message, const JSONNode &
else if (logType == "log:unsubscribe") {
message.type = UNSUBSCRIBE;
+ const JSONNode &client_id = log_data_["client_message_id"];
+ if (client_id)
+ message.message_id = client_id.as_string();
+
const JSONNode &fbids_ = log_data_["removed_participants"];
for (auto &it2 : fbids_) {
std::string id = it2.as_string().substr(5); // strip "fbid:" prefix