diff options
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 7 | ||||
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 4 | ||||
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 6d7de7f81f..65a1adea23 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -144,6 +144,13 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam) TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
if (dat == NULL || (pContainer = dat->pContainer) == NULL)
return 1;
+
+ if (lParam == NULL) {
+ DM_UpdateLastMessage(dat);
+ return 0;
+ }
+
+ _tcsncpy(dat->szStatusBar, (TCHAR *)lParam, SIZEOF(dat->szStatusBar));
}
else {
SESSION_INFO *si = SM_FindSessionByHCONTACT((HANDLE)wParam);
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());
|