summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 4a413b4035..4455126c61 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -369,7 +369,7 @@ void FacebookProto::LoadHistory(void *pParam)
try {
messages.clear();
- ParseHistory(&resp.data, &messages, &firstTimestamp);
+ ParseHistory(&resp.data, messages, &firstTimestamp);
// Receive messages
std::string previousFirstMessageId = firstMessageId;
@@ -890,38 +890,6 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message> &messages, boo
delete hChatContacts;
}
-void FacebookProto::ProcessMessages(void* data)
-{
- if (data == nullptr)
- return;
-
- std::string* resp = (std::string*)data;
-
- if (isOffline()) {
- delete resp;
- return;
- }
-
- debugLogA("*** Starting processing messages");
-
- try {
- std::vector<facebook_message> messages;
- ParseMessages(resp, &messages);
-
- ReceiveMessages(messages);
-
- if (getBool(FACEBOOK_KEY_EVENT_NOTIFICATIONS_ENABLE, DEFAULT_EVENT_NOTIFICATIONS_ENABLE))
- ShowNotifications();
-
- debugLogA("*** Messages processed");
- }
- catch (const std::exception &e) {
- debugLogA("*** Error processing messages: %s", e.what());
- }
-
- delete resp;
-}
-
void FacebookProto::ShowNotifications()
{
mir_cslock s(facy.notifications_lock_);