From 581204a18bc5a50d1c8a7412e147e560503d11b8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 30 May 2014 15:31:28 +0000 Subject: db_mc_getMostOnline - a handy helper for MS_MC_GETMOSTONLINECONTACT git-svn-id: http://svn.miranda-ng.org/main/trunk@9372 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/cache.cpp | 3 +-- plugins/AVS/src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/cache.cpp b/plugins/AVS/src/cache.cpp index ec4171836f..4e7c28bdab 100644 --- a/plugins/AVS/src/cache.cpp +++ b/plugins/AVS/src/cache.cpp @@ -154,8 +154,7 @@ void NotifyMetaAware(MCONTACT hContact, CacheNode *node = NULL, AVATARCACHEENTRY if ((node->dwFlags & MC_ISSUBCONTACT) && db_get_b(NULL, META_PROTO, "Enabled", 0)) { MCONTACT hMasterContact = db_mc_getMeta(hContact); - if (hMasterContact && (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, (WPARAM)hMasterContact, 0) == hContact && - !db_get_b(hMasterContact, "ContactPhoto", "Locked", 0)) + if (hMasterContact && db_mc_getMostOnline(hMasterContact) == hContact && !db_get_b(hMasterContact, "ContactPhoto", "Locked", 0)) NotifyEventHooks(hEventChanged, (WPARAM)hMasterContact, (LPARAM)ace); } diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp index 2565b6cad7..244282cc25 100644 --- a/plugins/AVS/src/utils.cpp +++ b/plugins/AVS/src/utils.cpp @@ -514,7 +514,7 @@ MCONTACT GetContactThatHaveTheAvatar(MCONTACT hContact, int locked) locked = db_get_b(hContact, "ContactPhoto", "Locked", 0); if (!locked) - hContact = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, hContact, 0); + hContact = db_mc_getMostOnline(hContact); } } return hContact; -- cgit v1.2.3