summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-10 17:03:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-10 17:03:56 +0300
commitab5d35225db150cfd20158cfae1b38ca77d5b5ab (patch)
treeb005785cf33e89f73b31459b45e7ff93407d0c75 /plugins
parent232ad59e407e92d4999b2cde32b1f849f3cbd3e1 (diff)
fixes #3560 (Чаты: механизм отключения хранения истории чатов в базе)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NoHistory/src/options.cpp20
-rw-r--r--plugins/NoHistory/src/version.h2
2 files changed, 9 insertions, 13 deletions
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 <stdver.h>