From 0e8f5a3aa5f5e73b413c5646444751783e367f2b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Mar 2018 23:42:36 +0300 Subject: Facebook: unneeded thread removed --- protocols/FacebookRM/src/proto.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'protocols/FacebookRM/src/proto.h') diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h index 03c3920150..98262699ff 100644 --- a/protocols/FacebookRM/src/proto.h +++ b/protocols/FacebookRM/src/proto.h @@ -26,8 +26,10 @@ along with this program. If not, see . class FacebookProto : public PROTO { + friend class facebook_client; + bool IgnoreDuplicates(const std::string &mid); - bool ProcessSpecialMessage(std::vector* messages, const JSONNode &meta_, MessageType messageType, const std::string &messageData = ""); + bool ProcessSpecialMessage(std::vector &messages, const JSONNode &meta_, MessageType messageType, const std::string &messageData = ""); void ParseAttachments(std::string &message_text, const JSONNode &delta_, std::string other_user_fbid, bool legacy); void ParseMessageType(facebook_message &message, const JSONNode &log_type_, const JSONNode &log_body_, const JSONNode &log_data_); @@ -36,8 +38,8 @@ 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* data, std::vector* messages, std::string* firstTimestamp); - int ParseMessages(std::string*, std::vector< facebook_message >*); + int ParseHistory(std::string* data, std::vector &messages, std::string *firstTimestamp); + int ParseMessages(std::string &data, std::vector< facebook_message >&); int ParseMessagesCount(std::string *data, int *messagesCount, int *unreadCount); int ParseNotifications(std::string*, std::map< std::string, facebook_notification* >*); int ParseThreadInfo(std::string* data, std::string* user_id); @@ -184,7 +186,6 @@ public: // Processing threads void __cdecl ProcessFriendList(void*); - void __cdecl ProcessMessages(void*); void __cdecl ProcessUnreadMessages(void*); void __cdecl ProcessUnreadMessage(void*); void __cdecl ProcessFeeds(void*); -- cgit v1.2.3