summaryrefslogtreecommitdiff
path: root/plugins/AVS/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-28 20:04:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-28 20:04:22 +0300
commit49e08f17d39cf4c067ef742dfd3d903e18115fef (patch)
treee2ed15ee1e7a7ac820497a5b7bbc8c9f3d00ad72 /plugins/AVS/src
parent539ff4d84f6febf81784bb8961ddddeaa18d1b44 (diff)
AVS: metacontacs avatars occasionally got hidden
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r--plugins/AVS/src/cache.cpp1
-rw-r--r--plugins/AVS/src/poll.cpp1
-rw-r--r--plugins/AVS/src/poll.h1
-rw-r--r--plugins/AVS/src/utils.cpp3
4 files changed, 5 insertions, 1 deletions
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;