summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/contacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-28 20:30:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-28 20:30:32 +0300
commit8ae09e329384682579d59fc92cd7ed5de37e1351 (patch)
treeb5b4db8ae2f9796d222fcf6324346e86d8cd2dba /protocols/FacebookRM/src/contacts.cpp
parent6872a9a9b1f032ede5471a8a03abc76e7c7259d9 (diff)
Facebook:
- fixes problems with decoding attachments; - major rework of class structure; - version bump
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp
index 104877514a..5a3f14ac93 100644
--- a/protocols/FacebookRM/src/contacts.cpp
+++ b/protocols/FacebookRM/src/contacts.cpp
@@ -177,7 +177,7 @@ std::string FacebookProto::ThreadIDToContactID(const std::string &thread_id)
if (resp.code == HTTP_CODE_OK) {
try {
- facebook_json_parser(this).parse_thread_info(&resp.data, &user_id);
+ ParseThreadInfo(&resp.data, &user_id);
if (!user_id.empty())
facy.thread_id_to_user_id.insert(std::make_pair(thread_id, user_id));
@@ -208,7 +208,7 @@ void FacebookProto::LoadContactInfo(facebook_user* fbu)
if (resp.code == HTTP_CODE_OK) {
try {
- facebook_json_parser(this).parse_user_info(&resp.data, fbu);
+ ParseUserInfo(&resp.data, fbu);
debugLogA("*** Contact thread info processed");
}
catch (const std::exception &e) {
@@ -276,7 +276,7 @@ void FacebookProto::LoadParticipantsNames(facebook_chatroom *fbc)
if (resp.code == HTTP_CODE_OK) {
try {
// TODO: We can cache these results and next time (e.g. for different chatroom) we can use that already cached names
- facebook_json_parser(this).parse_chat_participant_names(&resp.data, &fbc->participants);
+ ParseChatParticipants(&resp.data, &fbc->participants);
debugLogA("*** Participant names processed");
}
catch (const std::exception &e) {
@@ -315,7 +315,7 @@ void FacebookProto::LoadChatInfo(facebook_chatroom *fbc)
}
try {
- facebook_json_parser(this).parse_chat_info(&resp.data, fbc);
+ ParseChatInfo(&resp.data, fbc);
// Load missing participants names
LoadParticipantsNames(fbc);