diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-17 12:17:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-17 12:17:44 +0300 |
commit | a228b0e44e9da5c5ef2f871f0cce63a4e8ae18ac (patch) | |
tree | 2a45928340873b2fbec55501ca4803ac36a45037 /plugins | |
parent | 9aee9deca972b405a09033456ec2f270eea96cd3 (diff) |
fixes #4466 (Telegram: при очистке истории канала нужно блокировать опции про удаление истории с сервера)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 91dcfa58a3..6d2b156ecf 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -339,7 +339,7 @@ public: chkForEveryone(this, IDC_BOTH)
{
if (char *szProto = Proto_GetBaseAccountName(hContact)) {
- bDelHistory = ProtoServiceExists(szProto, PS_EMPTY_SRV_HISTORY);
+ bDelHistory = Proto_CanDeleteHistory(szProto, hContact);
bForEveryone = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0) & PF4_DELETEFORALL) != 0;
}
}
|