summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
AgeCommit message (Collapse)Author
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: 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-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: 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
2016-01-02Facebook: Try to use "m." version if "mbasic." failsRobert Pösel
This should fix searching and loading friendship requests at login for users which internally gets "mbasic" (not "touch") version when requesting "m" version git-svn-id: http://svn.miranda-ng.org/main/trunk@15982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-02Facebook: Fix broken login for some people (WARNING: loading frienship ↵Robert Pösel
requests at login and searching users will not work for them); version bump Some people may have not available page mbasic.facebook.com, but only m.facebook.com works for them. Problem is that "m." version shows internally either "mbasic." version OR "touch." version. In latter case source code of page looks completely different and is hard to parse. This commit uses "m." version for home (get own name, avatar and logout hash) and dtsg (get dtsg token) requests and allows parsing from both "touch." and "mbasic." versions. Problem is with loading friendship requets at login and searching users, because plugin can't parse such data for "touch." and uses only "mbasic." - so if user can't load "mbasic.", these features won't work. git-svn-id: http://svn.miranda-ng.org/main/trunk@15981 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-09-01Facebook: Revise various requests, remove weird typing optimizationRobert Pösel
Revised requests: * typing notification * thread_sync * thread_info * user_info * user_info_all * buddy_list git-svn-id: http://svn.miranda-ng.org/main/trunk@15143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-01Facebook: Various fixesRobert Pösel
* Use InterlockedIncrement for msgId * Remove old phstamp parameter and use fixed ttstamp instead * Use __req parameter in requests * Use __rev parameter with static value in requests (hopefully it's better than empty) git-svn-id: http://svn.miranda-ng.org/main/trunk@15139 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-29Facebook: Fix getting friend requests at login; version bumpRobert Pösel
And some small other code changes git-svn-id: http://svn.miranda-ng.org/main/trunk@15097 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-27name conflictsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@15046 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-05Facebook: New feature to notify "On this day" posts at login; version bumpRobert Pösel
Right now it notify at every login, max. last 20 posts. In future I'll probably add more options to limit number of posts and do it only one per day, etc. git-svn-id: http://svn.miranda-ng.org/main/trunk@14006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-31- MAllStrings: a handy union to hold an incoming string parameter of any type;George Hazan
- FNAMECHAR: atavism extincted; - PROTOSEARCHRESULT: structure prepared to use results of any type, including utf git-svn-id: http://svn.miranda-ng.org/main/trunk@13932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-31Facebook: Raise sync threads limit to 2 days and classically load unread ↵Robert Pösel
messages all the time (sync threads is not reliable) I'm not sure whether this will cause duplicit messages or not. But this (or any) sync should be improved anyway. git-svn-id: http://svn.miranda-ng.org/main/trunk@13925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-31Facebook: Fix loading notifications on login again (now really) and marking ↵Robert Pösel
them as read git-svn-id: http://svn.miranda-ng.org/main/trunk@13924 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-30Facebook: Fix loading unread notifications on login (checks only last 20 items)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@13918 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-25FB json parsing rewritten for new headersGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@13832 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22replace strcpy to mir_strcpyKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22T2Utf - handy replacement for ptrA<mir_utf8decodeT()>George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@13758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22replace _tcscmp to mir_tstrcmpKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22replace strcmp to mir_strcmpKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-21war against atavisms continuesGeorge Hazan
- everything that goes to PSS_MESSAGE should be sent as utf8 string; - thus PREF_UNICODE & PREF_UTF support discontinued, these constants are removed; - support for PREF_UNICODE & PREF_UTF in protocols also removed; - PREF_UNICODE used in file transfers (PROTOFILERECVT) replaced with PRFF_UNICODE / PRFF_TCHAR git-svn-id: http://svn.miranda-ng.org/main/trunk@13734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-25Facebook - common projectVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-15Facebook: Cleanup logging a bit, don't log that much personal info, make it ↵Robert Pösel
much smaller size Remove useless stuff (like cookies or status changes), don't log personal like message texts (there is still some personal info like user name etc.), and some other changes... git-svn-id: http://svn.miranda-ng.org/main/trunk@12118 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-14Facebook: Fix (hopefully) for not receiving messages sometimes; some tiny ↵Robert Pösel
other fixes This ancient "bug" was here since beginning of Facebook RM. But it's not a bug, it just Facebook return wrong sequence number which then causes this. git-svn-id: http://svn.miranda-ng.org/main/trunk@12103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-07Facebook: Separate (add new type) "Friendship changes" notifications from ↵Robert Pösel
"Other notifications" git-svn-id: http://svn.miranda-ng.org/main/trunk@12034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-07Facebook: Fix for not showing contact name in "contact is no longer on ↵Robert Pösel
server-list" and similar popups git-svn-id: http://svn.miranda-ng.org/main/trunk@12033 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-06Facebook, Omegle, MobileState: Happy New Year 2015Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@12019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-23Facebook: Rework working with timestamps; version bumpRobert Pösel
Use time_t almost everywhere instead of DWORD and remove fix_timestamp method to replace it with to_timestamp git-svn-id: http://svn.miranda-ng.org/main/trunk@11599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-23Facebook: Remove support for "use local timestamp for messages"Robert Pösel
It's not needed anymore because we correctly set server time for sent messages, so everything will be consistent (in server time) git-svn-id: http://svn.miranda-ng.org/main/trunk@11598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-21Facebook: Use correct (= server) timestamp for sent messagesRobert Pösel
- used only when "use local time for messages" isn't enabled - also it probably doesn't work for StdMsg (SRMM) plugin git-svn-id: http://svn.miranda-ng.org/main/trunk@11555 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-20Facebook: Various code improvements (as reported by Coverity analyser); ↵Robert Pösel
version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11546 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-14FacebookRM: changed warning lavel to w4Kirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@11420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-04Facebook: Rename key "Deleted" to "DeletedTS"Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11242 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01Facebook: Optimize marking chat messages as readRobert Pösel
Not mark as read every single message when loading history messages. git-svn-id: http://svn.miranda-ng.org/main/trunk@11206 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01Facebook: Some other changesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11198 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01Facebook: Fix few potential crashesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11196 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01Facebook: More improvements for chatroomsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-26Facebook: Various optimizations and cleanupRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-20Facebook: Refactor whole groupchat with notificationsRobert Pösel
This fix crash on right-click to notification popup and problem with not working notifications count in statusbar git-svn-id: http://svn.miranda-ng.org/main/trunk@11028 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-19Facebook: Option to log notifications into special chatroom; version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11020 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-17Facebook: Experimental messages sync at login (for last 24-hours only) ↵Robert Pösel
(patch by Vojtěch Kinkor, thanks) git-svn-id: http://svn.miranda-ng.org/main/trunk@11006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-17Facebook: Use correct phstamp and ttstamp values in POST data (Facebook ↵Robert Pösel
doesn't give a .... anyway) git-svn-id: http://svn.miranda-ng.org/main/trunk@11005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-15Facebook: fix searching by id/loginRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10991 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-09-19Facebook: Receive info (message) about missed video callRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-09-07Facebook: dtsg_ is never emptyRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-08-11Facebook: Make it positive, people like it positive...Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10161 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c