From 1e5ae8efefc6f50082c1c1734c763aab2fb1b7f5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Jan 2018 22:25:39 +0300 Subject: adds support for exiting groupchats --- protocols/FacebookRM/src/json.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/FacebookRM/src/json.cpp') 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 -- cgit v1.2.3