From 49e08f17d39cf4c067ef742dfd3d903e18115fef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Jan 2020 20:04:22 +0300 Subject: AVS: metacontacs avatars occasionally got hidden --- plugins/AVS/src/cache.cpp | 1 + plugins/AVS/src/poll.cpp | 1 + plugins/AVS/src/poll.h | 1 + plugins/AVS/src/utils.cpp | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/cache.cpp b/plugins/AVS/src/cache.cpp index 3094c122e8..23c3348311 100644 --- a/plugins/AVS/src/cache.cpp +++ b/plugins/AVS/src/cache.cpp @@ -1,4 +1,5 @@ /* +Copyright (C) 2012-20 Miranda NG team (https://miranda-ng.org) Copyright (C) 2006 Ricardo Pescuma Domenecci, Nightwish This is free software; you can redistribute it and/or diff --git a/plugins/AVS/src/poll.cpp b/plugins/AVS/src/poll.cpp index 9ccaae4df2..a77db51160 100644 --- a/plugins/AVS/src/poll.cpp +++ b/plugins/AVS/src/poll.cpp @@ -1,4 +1,5 @@ /* +Copyright (C) 2012-20 Miranda NG team (https://miranda-ng.org) Copyright (C) 2006 Ricardo Pescuma Domenecci, Nightwish This is free software; you can redistribute it and/or diff --git a/plugins/AVS/src/poll.h b/plugins/AVS/src/poll.h index 39678f2b4e..7d7663f9c3 100644 --- a/plugins/AVS/src/poll.h +++ b/plugins/AVS/src/poll.h @@ -1,4 +1,5 @@ /* +Copyright (C) 2012-20 Miranda NG team (https://miranda-ng.org) Copyright (C) 2006 Ricardo Pescuma Domenecci, Nightwish This is free software; you can redistribute it and/or diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp index d50ae6f86b..2797eda433 100644 --- a/plugins/AVS/src/utils.cpp +++ b/plugins/AVS/src/utils.cpp @@ -1,4 +1,5 @@ /* +Copyright (C) 2012-20 Miranda NG team (https://miranda-ng.org) Copyright (C) 2006 Ricardo Pescuma Domenecci, Nightwish This is free software; you can redistribute it and/or @@ -158,7 +159,7 @@ int CreateAvatarInCache(MCONTACT hContact, AVATARCACHEENTRY *ace, const char *sz GetObject(ace->hbmPic, sizeof(bminfo), &bminfo); ace->dwFlags = AVS_BITMAP_VALID; - if (hContact != NULL && Contact_IsHidden(hContact)) + if (hContact != NULL && db_get_b(hContact, "ContactPhoto", "Hidden", 0)) ace->dwFlags |= AVS_HIDEONCLIST; ace->hContact = hContact; ace->bmHeight = bminfo.bmHeight; -- cgit v1.2.3