diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-23 12:27:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-23 12:27:23 +0300 |
commit | ccd536abba45dd6cde16d727c1bc1706799bb802 (patch) | |
tree | 29b24987683a2fcf2c16add97200721d278da442 /plugins/Dbx_sqlite/src/dbcontacts.cpp | |
parent | 5de571b50dfcbb6534d69d685eef57a0ff35fc61 (diff) |
fixes #2734 ([dbx_sqlite] only the last of unread events is shown when multiple unread events arrive)
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbcontacts.cpp')
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbcontacts.cpp | 2 |
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; } |