summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
AgeCommit message (Collapse)Author
2016-09-01Facebook: Set users that were active more than 15 minutes ago as offline; ↵Robert Pösel
version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@17241 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-09-01Facebook: Rework event notify type from defines and flags to enumRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-09-01Facebook: Add support for forgotten PHONE_CALL and cleanup codeRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17233 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-08-31Facebook: Improve handling users joining chatroom (fixes #1279)Robert Pösel
This commit makes them add to chat's user list and load their name too. git-svn-id: http://svn.miranda-ng.org/main/trunk@17223 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-08-31Facebook: Basic support for handling more chat events; version bumpRobert Pösel
Events like user join/leave, change emoji, etc. are now printed, but that's all. Still missing specific behavior for them, but that require more changes in events parsing and on other places. git-svn-id: http://svn.miranda-ng.org/main/trunk@17222 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-08-31Facebook: Support loading videocall events from serverRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17221 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-08-31Facebook: Implement loading history from server (via contact menu)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17220 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-29no more TCHARsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-27less TCHARsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-27<tchar.h> removed from <m_system.h>George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-26less TCHARs:George Hazan
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-25Facebook: Improve loading users in chatroomsRobert Pösel
Fix loading all names (previously it won't loaded name of last user), load also former participants, code refactoring git-svn-id: http://svn.miranda-ng.org/main/trunk@17129 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-17Facebook: Greatly improve format of wall post's textRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17105 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-16Facebook: Improve working with different user types (friend, user, page)Robert Pösel
Also simplify arguments of AddToContactList method. And don't show auth items in contact menu for page contacts. git-svn-id: http://svn.miranda-ng.org/main/trunk@17099 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-16Facebook: Improve loading user info about "facebook pages" contactsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17098 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-10Facebook: Support receiving "video" attachmentsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-05Facebook: Rework popup behavior and options pageRobert Pösel
Now items in status menu/services are much more useful, as you can disable automatic loading of newsfeeds/notifications/on this day, but you can trigger it manually via status menu/services menu git-svn-id: http://svn.miranda-ng.org/main/trunk@17063 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-05Facebook: Prepare for showing reaction icons for notifications (needs ↵Robert Pösel
support in Popup+ and YAPP) git-svn-id: http://svn.miranda-ng.org/main/trunk@17061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-06-30Facebook: Support receiving animated images (GIF) attachmentsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@17054 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-06-25Facebook: Attempt to fix not setting contacts as offlineRobert Pösel
This at least partially fixes the problem, but list of online contacts is still not very reliable. git-svn-id: http://svn.miranda-ng.org/main/trunk@17039 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-06-07warning fixKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@16940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-05-17Facebook: Rework loading online contacts (not properly finished!); version bumpRobert Pösel
This is work in progress, which might (and will) cause wrong status reporting and maybe related problems. On the other hand this way is only "preferred" way. Previous way (using buddy_list request) isn't used anymore and might cause the captcha problems and antivirus checks from FB... git-svn-id: http://svn.miranda-ng.org/main/trunk@16843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-05-13- memory leak fixed;George Hazan
- manual memory management replaced with the automated one git-svn-id: http://svn.miranda-ng.org/main/trunk@16822 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Attempt to fix receiving messages for some usersRobert Pösel
This temporary returns back processing of "deliver" event which was used before for receiving messages. Probably Facebook still uses it (instead of new "delta" event) for some people, so this should hopefully fix it for them. But it's untested and might not work correctly (I need users response on this). Also this doesn't support receiving "Message read at ..." for these users, I might add it back too, but maybe later. git-svn-id: http://svn.miranda-ng.org/main/trunk@16730 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Fix loading unread messagesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16729 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Trim received messages text from spaces at begin/endRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Oops, don't load attachments when there are noneRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16707 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix and rework getting message's attachmentsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16706 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix showing user's name for multi chat messagesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16703 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Remove useless sender_name fieldRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Loading names of all users in multi chat from server (not only ↵Robert Pösel
existing Miranda contacts) It primary iterates over Miranda's contacts list to find existing contacts (e.g. to preserve existing custom names of these contacts). Then for missing ones it does request to server to get their names. git-svn-id: http://svn.miranda-ng.org/main/trunk@16701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Remove option "receive messages from inbox only"Robert Pösel
It probably doesn't have any effect anymore. And if it still has any effect, plugin behaves like if it was disabled (receiving all messages). Report any issues with the new FB's feature of "approving" messages from unknown people. git-svn-id: http://svn.miranda-ng.org/main/trunk@16694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix receiving multi chat messages, stop using old "deliver" eventRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Rework read receipts for multi chatsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16691 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-27Facebook: More messaging fixesRobert Pösel
Receiving chat messages should work now. And some other fixes. But attachments/stickers still doesn't work. git-svn-id: http://svn.miranda-ng.org/main/trunk@16552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-27Facebook: Fix receiving sent messages from other instancesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-25Facebook: Don't try to parse attachments when there is noneRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16545 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-25Facebook: Fix receiving messages (part II, attempt to fix attachments - but ↵Robert Pösel
doesn't work yet) git-svn-id: http://svn.miranda-ng.org/main/trunk@16541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-25Facebook: Fix receiving messages (part I, chats and attachments doesn't work ↵Robert Pösel
yet) git-svn-id: http://svn.miranda-ng.org/main/trunk@16540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-12Facebook: Some changes to contact mirver (probably doesn't work, as before)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16273 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-12Facebook: Update some requests format, changes for stickers and new support ↵Robert Pösel
for sending stickers (send message "[[sticker:STICKER_ID]]") git-svn-id: http://svn.miranda-ng.org/main/trunk@16272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-02Copyrights update part 2Dart Raiden
git-svn-id: http://svn.miranda-ng.org/main/trunk@15985 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-12Facebook: Don't set away users as idleRobert Pösel
If this will be reconsidered and enabled marking away people as idle again, then don't forget to add reseting the idle flag back to false. Because in previous commit it was set only to true and never back, even when user was online again. git-svn-id: http://svn.miranda-ng.org/main/trunk@15844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-12Facebook: Visibility/away improvementsRobert Pösel
* Mark contacts last active more than 1 minute ago as away * Don't make us active for FB when we're invisible or away git-svn-id: http://svn.miranda-ng.org/main/trunk@15843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-11-09Facebook: Disable marking contacts "on the phone" as it is not reliable anymoreRobert Pösel
Added new hidden option "FetchMobile" (byte), which is default "0" (disabled), but you can set "1" to mark all contacts that are in json's array "mobile_friends" as "on the phone". Also you can set it to "2" to set MirVer based on some "c" field, but it is just guessed and not really correct - it was just internal test to try to distinguish between them to understand what the "c" field means. git-svn-id: http://svn.miranda-ng.org/main/trunk@15701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-11-01Facebook: Fix setting contacts' status "on the phone" with new version of ↵Robert Pösel
Facebook In new version Facebook stopped sending "p" json element with info about client user is connected with. Without that info, we won't have correct MirVer anymore (now setting website by default). But there is still element which say what contacts are "on mobile" so now we use that correctly. git-svn-id: http://svn.miranda-ng.org/main/trunk@15665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-05Facebook: Fix creating wrongly identified group chats as dummy contacts ↵Robert Pösel
during history sync at login Problem was caused by expectation that thread_fbid has only classic contacts, but in fact even group chats can have it. Solution is to use other_user_fbid which is null for group chat contacts. git-svn-id: http://svn.miranda-ng.org/main/trunk@15246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-01Facebook: Add new option "Prefer real names instead of nicknames"Robert Pösel
By disabling it you will see nicknames (if available) instead of real name of contacts. git-svn-id: http://svn.miranda-ng.org/main/trunk@15142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-29Facebook: Fix receiving messages on login / opening windowRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15096 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-29Facebook: Fix receiving messages (broken in r15046)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c