summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-08 09:04:12 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-08 09:04:12 +0000
commit4bd7c58f326a14d87dc4564d9e7fdb9c3793bfa3 (patch)
tree5407981ded301ced699dc7b3b81306f6077c91fe /protocols/FacebookRM
parent388af93d9576fd46f4e6e0406b727a50549aba28 (diff)
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
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/chat.cpp4
-rw-r--r--protocols/FacebookRM/src/messages.cpp3
-rw-r--r--protocols/FacebookRM/src/process.cpp2
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<std::string, facebook_chatroom>::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, "<div class=\"timeline", "<div id=\"footer");
+ std::string about = utils::text::source_get_value(&resp.data, 2, "<div class=\"timeline", "id=\"footer");
std::string id = utils::text::source_get_value2(&about, ";id=", "&\"");
if (id.empty())