From 4bd7c58f326a14d87dc4564d9e7fdb9c3793bfa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 8 Nov 2013 09:04:12 +0000 Subject: Facebook: Fixed searching by ID/Login; Don't show "unseen" in chat's statusbar git-svn-id: http://svn.miranda-ng.org/main/trunk@6825 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/chat.cpp | 4 ++-- protocols/FacebookRM/src/messages.cpp | 3 ++- protocols/FacebookRM/src/process.cpp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp index e480814f49..6519f1c96b 100644 --- a/protocols/FacebookRM/src/chat.cpp +++ b/protocols/FacebookRM/src/chat.cpp @@ -52,8 +52,8 @@ void FacebookProto::UpdateChat(const char *chat_id, const char *id, const char * std::map::iterator chatroom = facy.chat_rooms.find(chat_id); chatroom->second.message_readers = ""; - HANDLE hChatContact = ChatIDToHContact(chat_id); - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, (LPARAM)mir_a2u("Unseen")); + //HANDLE hChatContact = ChatIDToHContact(chat_id); + //CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, (LPARAM)mir_a2u("Unseen")); } void FacebookProto::RenameChat(const char *chat_id, const char *name) diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 7e09ccd616..0adbf44134 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -171,7 +171,8 @@ void FacebookProto::ReadMessageWorker(void *p) // mark message read (also send seen info) ptrA mid( getStringA(hContact, FACEBOOK_KEY_MESSAGE_ID)); - if (mid == NULL) return; + if (mid == NULL) + return; std::string data = "ids[" + std::string(mid) + "]=true"; data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0"); diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 21ea7fa2d5..3837a73f94 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -871,7 +871,7 @@ void FacebookProto::SearchIdAckThread(void *targ) if (resp.code == HTTP_CODE_OK) { - std::string about = utils::text::source_get_value(&resp.data, 2, "