summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-05-15 19:08:18 +0000
committerRobert Pösel <robyer@seznam.cz>2013-05-15 19:08:18 +0000
commit5df6d44b96e14bd9a351971b76e1f25ce1305940 (patch)
treed03a6c486b8442219eb3044ed6ca407a1bda4337 /protocols/FacebookRM
parenta24c54b1c68eac0bc187a60192b6691912b34472 (diff)
Fixes for Facebook and TabSRMM setting statusbar text.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4663 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/json.cpp4
-rw-r--r--protocols/FacebookRM/src/messages.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 4da26c5d93..34660bc1d6 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -344,9 +344,9 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
// TODO: add check for chat contacts
HANDLE hContact = proto->ContactIDToHContact(user_id);
if (hContact) {
- TCHAR ttime[100], tstr[200];
+ TCHAR ttime[64], tstr[100];
_tcsftime(ttime, SIZEOF(ttime), _T("%X"), utils::conversion::fbtime_to_timeinfo(time.Value()));
- mir_sntprintf(tstr, SIZEOF(tstr), TranslateT("Message read at %s"), ttime);
+ mir_sntprintf(tstr, SIZEOF(tstr), TranslateT("Message read: %s"), ttime);
CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, (LPARAM)tstr);
}
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp
index 369d392733..0ef3bdb325 100644
--- a/protocols/FacebookRM/src/messages.cpp
+++ b/protocols/FacebookRM/src/messages.cpp
@@ -65,6 +65,7 @@ void FacebookProto::SendMsgWorker(void *p)
}
if (result) {
ProtoBroadcastAck(m_szModuleName,data->hContact,ACKTYPE_MESSAGE,ACKRESULT_SUCCESS, data->msgid,0);
+ CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)data->hContact, NULL);
MessagingWorker(new send_messaging(dbv.pszVal, FACEBOOK_SEND_MESSAGE));
} else {
char *err = mir_utf8decodeA(error_text.c_str());