diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-02-07 08:43:56 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-02-07 08:43:56 +0000 |
commit | 10a687c170007cc523d4cba3ed0ce5e1671d5af1 (patch) | |
tree | 7ea457051e8ff880d05f7e8b4ffa9e579002e773 /protocols/FacebookRM/src/json.cpp | |
parent | b59a7efc33992c608a22af334cb6de3bb7dbc339 (diff) |
Facebook: Realtime notify of new friendship requests; Version bump for new changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12039 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index f47a1a0528..cf715a9aba 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -642,6 +642,10 @@ int facebook_json_parser::parse_messages(std::string *data, std::vector< faceboo proto->NotifyEvent(proto->m_tszUserName, ptrT(mir_utf8decodeT(text.c_str())), NULL, FACEBOOK_EVENT_FRIENDSHIP, &url, alert_id.empty() ? NULL : &alert_id); } } + else if (t == "jewel_requests_add") { + // New friendship request, load them all with real names (because there is only user_id in "from" field) + proto->ForkThread(&FacebookProto::ProcessFriendRequests, NULL); + } else if (t == "typ") { // chat typing notification |