From ccd536abba45dd6cde16d727c1bc1706799bb802 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 23 Feb 2021 12:27:18 +0300 Subject: fixes #2734 ([dbx_sqlite] only the last of unread events is shown when multiple unread events arrive) --- plugins/Dbx_sqlite/src/dbcontacts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Dbx_sqlite/src/dbcontacts.cpp') 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; } -- cgit v1.2.3