summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-09-06 03:53:03 +0000
committerRobert Pösel <robyer@seznam.cz>2016-09-06 03:53:03 +0000
commita41b7bafb1181d2953c977b3c3f9ee3d746e5cd7 (patch)
tree75b878a919665941e8c304efa466dc5cd0f4449a /protocols/FacebookRM/src/process.cpp
parente5c5264e4f6b9032bc285da17fba7529ebf9da6d (diff)
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
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}
}