summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-23 12:27:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-23 12:27:23 +0300
commitccd536abba45dd6cde16d727c1bc1706799bb802 (patch)
tree29b24987683a2fcf2c16add97200721d278da442
parent5de571b50dfcbb6534d69d685eef57a0ff35fc61 (diff)
fixes #2734 ([dbx_sqlite] only the last of unread events is shown when multiple unread events arrive)
-rwxr-xr-xplugins/Dbx_sqlite/src/dbcontacts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbcontacts.cpp b/plugins/Dbx_sqlite/src/dbcontacts.cpp
index 740330921e..63c5dc4695 100755
--- a/plugins/Dbx_sqlite/src/dbcontacts.cpp
+++ b/plugins/Dbx_sqlite/src/dbcontacts.cpp
@@ -142,7 +142,7 @@ void DBCachedContact::AddEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread)
{
m_count = HasCount() ? m_count + 1 : 1;
- if (unread && timestamp > m_unreadTimestamp) {
+ if (unread && m_unreadTimestamp > timestamp) {
m_unread = hDbEvent;
m_unreadTimestamp = timestamp;
}