From 409d7264947ae132f6185cf5c6d1e4d3ff626f80 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Jun 2014 15:37:37 +0000 Subject: current sub in tabSRMM untied from the meta services git-svn-id: http://svn.miranda-ng.org/main/trunk@9553 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/contactcache.cpp | 7 +++++++ plugins/TabSRMM/src/contactcache.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 75337b1161..e34eb7b821 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -599,3 +599,10 @@ int CContactCache::getMaxMessageLength() } return m_nMax; } + +const MCONTACT CContactCache::getActiveContact() const +{ + if (!m_isMeta) + return m_hContact; + return CallService(MS_MC_GETSRMMSUB, m_hContact, 0); +} diff --git a/plugins/TabSRMM/src/contactcache.h b/plugins/TabSRMM/src/contactcache.h index 74bb7c7853..c12879ab4a 100644 --- a/plugins/TabSRMM/src/contactcache.h +++ b/plugins/TabSRMM/src/contactcache.h @@ -77,7 +77,7 @@ struct CContactCache : public MZeroedObject const WORD getOldStatus() const { return m_wOldStatus; } const TCHAR* getNick() const { return m_szNick; } const MCONTACT getContact() const { return m_hContact; } - const MCONTACT getActiveContact() const { return m_isMeta ? db_mc_getMostOnline(m_hContact) : m_hContact; } + const MCONTACT getActiveContact() const; const DWORD getIdleTS() const { return m_idleTS; } const char* getProto() const { return cc->szProto; } const char* getActiveProto() const { return m_isMeta ? (m_szMetaProto ? m_szMetaProto : cc->szProto) : cc->szProto; } -- cgit v1.2.3