summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/messages.cpp3
-rw-r--r--protocols/FacebookRM/src/process.cpp4
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<facebook_message> &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);
}
}