diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-29 20:43:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-29 20:43:47 +0000 |
commit | 2a8072247e1df7651416e06a6d0cf8754a88aa95 (patch) | |
tree | 2d55c570c2a81094a639a21263b35ef7ee678dea /plugins/TabSRMM/src/contactcache.cpp | |
parent | 8e64adb6f676695df87fb3dd697dd5ce3a4a873d (diff) |
return of m_wMetaStatus into tabSRMM cache
git-svn-id: http://svn.miranda-ng.org/main/trunk@9621 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.cpp')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index fab10869f0..38ef4e3f92 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -92,6 +92,7 @@ void CContactCache::resetMeta() {
m_isMeta = false;
m_szMetaProto = 0;
+ m_wMetaStatus = ID_STATUS_OFFLINE;
initPhaseTwo();
}
@@ -150,7 +151,15 @@ bool CContactCache::updateStatus() */
void CContactCache::updateMeta(bool fForce)
{
- m_szMetaProto = (m_Valid) ? GetContactProto(db_mc_getSrmmSub(cc->contactID)) : NULL;
+ if (m_Valid) {
+ MCONTACT hSub = db_mc_getSrmmSub(cc->contactID);
+ m_szMetaProto = GetContactProto(hSub);
+ m_wMetaStatus = (WORD)db_get_w(hSub, m_szMetaProto, "Status", ID_STATUS_OFFLINE);
+ }
+ else {
+ m_szMetaProto = NULL;
+ m_wMetaStatus = ID_STATUS_OFFLINE;
+ }
}
/**
|