From a41b7bafb1181d2953c977b3c3f9ee3d746e5cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 6 Sep 2016 03:53:03 +0000 Subject: Facebook: Fix not resetting the "message seen" info when we sent message from other instance (e.g. web) git-svn-id: http://svn.miranda-ng.org/main/trunk@17263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/messages.cpp | 3 --- protocols/FacebookRM/src/process.cpp | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 6a1ceb129a..425f926912 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -26,9 +26,6 @@ int FacebookProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre) { StopTyping(hContact); - // Remove from "readers" list and clear statusbar - facy.erase_reader(hContact); - return Proto_RecvMessage(hContact, pre); } diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index c714c11419..6508f12fcd 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -1003,6 +1003,10 @@ void FacebookProto::ReceiveMessages(std::vector &messages, boo dbei.pBlob = (PBYTE)msg.message_text.c_str(); db_event_add(hContact, &dbei); } + + // Reset the "message seen" info when we get any new message (doesn't matter if sent from other instance or received) + if (msg.isUnread) + facy.erase_reader(hContact); } } -- cgit v1.2.3