From ab5d35225db150cfd20158cfae1b38ca77d5b5ab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Oct 2023 17:03:56 +0300 Subject: =?UTF-8?q?fixes=20#3560=20(=D0=A7=D0=B0=D1=82=D1=8B:=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=BD=D0=B8=D0=B7=D0=BC=20=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B8=D1=81=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=B8=20=D1=87=D0=B0=D1=82=D0=BE=D0=B2=20=D0=B2=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B7=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NoHistory/src/options.cpp | 20 ++++++++------------ plugins/NoHistory/src/version.h | 2 +- 2 files changed, 9 insertions(+), 13 deletions(-) (limited to 'plugins/NoHistory/src') diff --git a/plugins/NoHistory/src/options.cpp b/plugins/NoHistory/src/options.cpp index e2c0f84e9f..c6366eb299 100644 --- a/plugins/NoHistory/src/options.cpp +++ b/plugins/NoHistory/src/options.cpp @@ -64,12 +64,10 @@ class CDlgOptionsDlg : public CDlgBase void SetAllContactIcons() { for (auto &hContact : Contacts()) { - if (!Contact::IsGroupChat(hContact)) { - HANDLE hItem = clist.FindContact(hContact); - if (hItem) { - bool disabled = (g_plugin.getByte(hContact, DBSETTING_REMOVE) == 1); - clist.SetExtraImage(hItem, 0, disabled ? 1 : 0); - } + HANDLE hItem = clist.FindContact(hContact); + if (hItem) { + bool disabled = (g_plugin.getByte(hContact, DBSETTING_REMOVE) == 1); + clist.SetExtraImage(hItem, 0, disabled ? 1 : 0); } } } @@ -126,12 +124,10 @@ public: g_plugin.bEnabledForNew = clist.GetExtraImage(hItemNew, 0); for (auto &hContact : Contacts()) { - if (!Contact::IsGroupChat(hContact)) { - HANDLE hItem = clist.FindContact(hContact); - if (hItem) { - int iImage = clist.GetExtraImage(hItem, 0); - g_plugin.setByte(hContact, DBSETTING_REMOVE, iImage == 1); - } + HANDLE hItem = clist.FindContact(hContact); + if (hItem) { + int iImage = clist.GetExtraImage(hItem, 0); + g_plugin.setByte(hContact, DBSETTING_REMOVE, iImage == 1); } } return true; diff --git a/plugins/NoHistory/src/version.h b/plugins/NoHistory/src/version.h index bb3b8226d9..ae57bad20f 100644 --- a/plugins/NoHistory/src/version.h +++ b/plugins/NoHistory/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 3 -#define __BUILD_NUM 2 +#define __BUILD_NUM 3 #include -- cgit v1.2.3