From 95d43413eeef2a573d8e317088c8a0e108a3c3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 6 Jul 2014 07:53:55 +0000 Subject: Facebook: Set "Message read" info (if exists) on opening message window git-svn-id: http://svn.miranda-ng.org/main/trunk@9698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/messages.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/FacebookRM/src/messages.cpp') diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index aae8a55ca5..f54312b8d6 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -26,6 +26,8 @@ int FacebookProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre) { StopTyping(hContact); + // Remove from "readers" list and clear statusbar + facy.readers.erase(hContact); CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, NULL); return Proto_RecvMessage(hContact, pre); @@ -57,6 +59,9 @@ void FacebookProto::SendMsgWorker(void *p) } if (result) { ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, data->msgid, 0); + + // Remove from "readers" list and clear statusbar + facy.readers.erase(data->hContact); CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)data->hContact, NULL); } else { ProtoBroadcastAck(data->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, data->msgid, (LPARAM)error_text.c_str()); -- cgit v1.2.3