diff options
author | zemiacsik <zemi@centrum.sk> | 2018-01-12 18:26:01 +0100 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-12 20:26:01 +0300 |
commit | 03d22907643a74684e690b8bc73580c1fcd591fd (patch) | |
tree | 047d4ab6b76e9670314b5b53b490081ce59e1150 /protocols/FacebookRM/src/proto.h | |
parent | 191f7f57e767f16dbd23a0baafae935d9be6662a (diff) |
Facebook: initial changes to support loading of unread chat messages (#1095)
* Facebook: initial changes to support loading of unread chat messages
* Facebook: load unread messages in one request + load last messages when chat opens (if is set)
* shrinked regex pattern, commented unused code
* Facebook: fixed loading of whole history
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r-- | protocols/FacebookRM/src/proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h index d5e3617546..a9b2e798dc 100644 --- a/protocols/FacebookRM/src/proto.h +++ b/protocols/FacebookRM/src/proto.h @@ -36,7 +36,7 @@ class FacebookProto : public PROTO<FacebookProto> int ParseChatInfo(std::string* data, facebook_chatroom* fbc); int ParseChatParticipants(std::string *data, std::map<std::string, chatroom_participant>* participants); int ParseFriends(std::string*, std::map< std::string, facebook_user* >*, bool); - int ParseHistory(std::string*, std::vector< facebook_message >*, std::string *); + int ParseHistory(std::string* data, std::vector<facebook_message>* messages, std::string* firstTimestamp); int ParseMessages(std::string*, std::vector< facebook_message >*, std::map< std::string, facebook_notification* >*); int ParseMessagesCount(std::string *data, int *messagesCount, int *unreadCount); int ParseNotifications(std::string*, std::map< std::string, facebook_notification* >*); |