From 03d22907643a74684e690b8bc73580c1fcd591fd Mon Sep 17 00:00:00 2001 From: zemiacsik Date: Fri, 12 Jan 2018 18:26:01 +0100 Subject: 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 --- protocols/FacebookRM/src/proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/proto.h') 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 int ParseChatInfo(std::string* data, facebook_chatroom* fbc); int ParseChatParticipants(std::string *data, std::map* 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* 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* >*); -- cgit v1.2.3