summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbcontacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbcontacts.cpp')
-rwxr-xr-x[-rw-r--r--]plugins/Dbx_sqlite/src/dbcontacts.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/plugins/Dbx_sqlite/src/dbcontacts.cpp b/plugins/Dbx_sqlite/src/dbcontacts.cpp
index e2bef8664a..0cf3a85d57 100644..100755
--- a/plugins/Dbx_sqlite/src/dbcontacts.cpp
+++ b/plugins/Dbx_sqlite/src/dbcontacts.cpp
@@ -153,30 +153,14 @@ void DBCachedContact::AddEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread)
m_count = HasCount()
? m_count + 1
: 1;
- if (m_firstTimestamp > timestamp) {
- m_first = hDbEvent;
- m_firstTimestamp = timestamp;
- }
if (unread && m_unreadTimestamp > timestamp) {
m_unread = hDbEvent;
m_unreadTimestamp = timestamp;
}
- if (m_lastTimestamp <= timestamp) {
- m_last = hDbEvent;
- m_lastTimestamp = timestamp;
- }
}
void DBCachedContact::EditEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread)
{
- if (m_first = hDbEvent && m_firstTimestamp != timestamp) {
- m_first = 0;
- m_firstTimestamp = 0;
- }
- else if (m_firstTimestamp > timestamp) {
- m_first = hDbEvent;
- m_firstTimestamp = timestamp;
- }
if (m_unread = hDbEvent && (!unread || m_unreadTimestamp != timestamp)) {
m_unread = 0;
m_unreadTimestamp = 0;
@@ -185,32 +169,16 @@ void DBCachedContact::EditEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread
m_unread = hDbEvent;
m_unreadTimestamp = timestamp;
}
- if (m_last = hDbEvent && m_lastTimestamp != timestamp) {
- m_last = 0;
- m_lastTimestamp = 0;
- }
- else if (m_lastTimestamp <= timestamp) {
- m_last = hDbEvent;
- m_lastTimestamp = timestamp;
- }
}
void DBCachedContact::DeleteEvent(MEVENT hDbEvent)
{
if (m_count > 0)
m_count--;
- if (m_first == hDbEvent) {
- m_first = 0;
- m_firstTimestamp = 0;
- }
if (m_unread == hDbEvent) {
m_unread = 0;
m_unreadTimestamp = 0;
}
- if (m_last == hDbEvent) {
- m_last = 0;
- m_lastTimestamp = 0;
- }
}
void DBCachedContact::MarkRead(MEVENT hDbEvent)