summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatej <matej.vavrek@m2ms.sk>2018-02-06 17:06:44 +0100
committermatej <matej.vavrek@m2ms.sk>2018-02-06 17:06:44 +0100
commit18d9a96928b22e847967b41a89eec6f636a260b2 (patch)
treefaf03cf465e2426230dd93aadf337b9d0ed64cb8
parent1411a401a25702a6c0947b9bfac2842a8915ad46 (diff)
Facebook: added parsing for messenger invitation
-rw-r--r--protocols/FacebookRM/src/json.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 6a70485d92..af00c80dce 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -357,7 +357,7 @@ void FacebookProto::ParseAttachments(std::string &message_text, const JSONNode &
if (!story_.empty()) {
hasAttachement = true;
std::string type = story_["target"]["__typename"].as_string();
- if (type == "ExternalUrl" || type == "Story") {
+ if (type == "ExternalUrl" || type == "Story" || type == "QuickInvite") {
newText = TranslateT("a link");
std::string title = story_["title_with_entities"]["text"].as_string();
@@ -380,7 +380,7 @@ void FacebookProto::ParseAttachments(std::string &message_text, const JSONNode &
attachments_text += description + "\n";
attachments_text += absolutizeUrl(link) + "\n";
}
- }
+ }
else debugLogA("json::parseAttachments (%s) - Unknown extensible attachment type %s", legacy ? "legacy" : "not legacy", type.c_str());
}
// else debugLogA("json::parseAttachments (%s) - Unknown attachment type", legacy ? "legacy" : "not legacy");
@@ -457,7 +457,7 @@ void FacebookProto::ParseAttachments(std::string &message_text, const JSONNode &
}
else if (const JSONNode story_ = attach_["extensible_attachment"]["story_attachment"]) {
std::string type = story_["target"]["__typename"].as_string();
- if (type == "ExternalUrl" || type == "Story") {
+ if (type == "ExternalUrl" || type == "Story" || type == "QuickInvite") {
newText = TranslateT("a link");
std::string title = story_["title_with_entities"]["text"].as_string();