diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-12 15:17:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-12 15:17:01 +0000 |
commit | 85179f507a34f211dccfdf96913caaf8bd8f637a (patch) | |
tree | e1eec00ea3ae2d9409db4adf845bb06381e79bbf /plugins/Clist_modern/src/modern_clistsettings.cpp | |
parent | e2056d849b38b2f32556abc44abe5f50f040040f (diff) |
clist_modern's cache is dark and full of terrors...
git-svn-id: http://svn.miranda-ng.org/main/trunk@8580 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistsettings.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clistsettings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_clistsettings.cpp b/plugins/Clist_modern/src/modern_clistsettings.cpp index 5960f1c12e..2fe657b50c 100644 --- a/plugins/Clist_modern/src/modern_clistsettings.cpp +++ b/plugins/Clist_modern/src/modern_clistsettings.cpp @@ -251,7 +251,7 @@ void cliCheckCacheItem(ClcCacheEntry *pdnce) if (pdnce->IsExpanded == -1)
pdnce->IsExpanded = db_get_b(pdnce->hContact, "CList", "Expanded", 0);
- if (pdnce->dwLastMsgTime == 0) {
+ if (pdnce->dwLastMsgTime == -1 && g_CluiData.bFilterEffective & (CLVM_FILTER_LASTMSG | CLVM_FILTER_LASTMSG_NEWERTHAN | CLVM_FILTER_LASTMSG_OLDERTHAN)) {
pdnce->dwLastMsgTime = db_get_dw(pdnce->hContact, "CList", "mf_lastmsg", 0);
if (pdnce->dwLastMsgTime == 0)
pdnce->dwLastMsgTime = CompareContacts2_getLMTime(pdnce->hContact);
@@ -280,7 +280,7 @@ void InvalidateDNCEbyPointer(MCONTACT hContact, ClcCacheEntry *pdnce, int Settin pdnce->ssSecondLine.iMaxSmileyHeight = 0;
pdnce->ssThirdLine.iMaxSmileyHeight = 0;
pdnce->hTimeZone = NULL;
- pdnce->dwLastMsgTime = 0;
+ pdnce->dwLastMsgTime = -1;
Cache_GetTimezone(NULL, pdnce->hContact);
SettingType &= ~16;
}
@@ -298,7 +298,7 @@ void InvalidateDNCEbyPointer(MCONTACT hContact, ClcCacheEntry *pdnce, int Settin pdnce->m_cache_cszProto = NULL;
}
// in other cases clear all binary cache
- else pdnce->dwLastMsgTime = 0;
+ else pdnce->dwLastMsgTime = -1;
pdnce->bIsHidden = -1;
pdnce->m_cache_nHiddenSubcontact = -1;
|