diff options
author | George Hazan <george.hazan@gmail.com> | 2024-04-17 13:07:33 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-04-17 13:07:33 +0300 |
commit | 3693cff5d58818b9513e3320dd37d8971899cb80 (patch) | |
tree | 485c45a858aa0b2635c641d66b338dd689838770 /src | |
parent | 5f3e1a04da3f45067435a321b17e25ef0445e66a (diff) |
fixes #4357 (Telegram: невозможно удалить историю с сервера только у себя)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clui.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp index e168c53cf1..568d839e17 100644 --- a/src/mir_app/src/clui.cpp +++ b/src/mir_app/src/clui.cpp @@ -149,6 +149,8 @@ public: bHasServer = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1) & PF1_SERVERCLIST) != 0;
bHasHistory = ProtoServiceExists(szProto, PS_EMPTY_SRV_HISTORY);
bForEveryone = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4) & PF4_DELETEFORALL) != 0;
+
+ chkDelHistory.OnChange = Callback(this, &CDeleteDlg::onChange_Server);
}
bool OnInitDialog() override
@@ -193,6 +195,11 @@ public: {
DeleteObject((HFONT)SendDlgItemMessage(m_hwnd, IDC_TOPLINE, WM_GETFONT, 0, 0));
}
+
+ void onChange_Server(CCtrlCheck *pButton)
+ {
+ chkForEveryone.Enable(pButton->IsChecked());
+ }
};
static INT_PTR MenuItem_DeleteContact(WPARAM hContact, LPARAM lParam)
|