summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-09 15:10:08 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-09 15:10:08 +0300
commit6f681b3b1ddbe1937561c64c08943101082f5450 (patch)
tree8897031d2148742b741fd19755385fbdb7f8924d
parentec6025510d1330001b76ea57291386b22377c653 (diff)
fixes #4639 (Telegram: невозможно очистить всю историю привата у собеседника)
-rw-r--r--src/mir_app/src/clui.cpp2
-rw-r--r--src/mir_app/src/srmm_main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp
index fd692cf5aa..c0bd2bc1d2 100644
--- a/src/mir_app/src/clui.cpp
+++ b/src/mir_app/src/clui.cpp
@@ -148,7 +148,7 @@ public:
szProto = Proto_GetBaseAccountName(hContact);
bHasServer = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1) & PF1_SERVERCLIST) != 0;
bHasHistory = Proto_CanDeleteHistory(szProto, hContact);
- bForEveryone = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4) & PF4_DELETEFORALL) != 0;
+ bForEveryone = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, hContact) & PF4_DELETEFORALL) != 0;
chkDelHistory.OnChange = Callback(this, &CDeleteContactDlg::onChange_Server);
}
diff --git a/src/mir_app/src/srmm_main.cpp b/src/mir_app/src/srmm_main.cpp
index 36c83e7ecc..7b07a9c790 100644
--- a/src/mir_app/src/srmm_main.cpp
+++ b/src/mir_app/src/srmm_main.cpp
@@ -47,7 +47,7 @@ public:
{
szProto = Proto_GetBaseAccountName(hContact);
bDelHistory = Proto_CanDeleteHistory(szProto, hContact);
- bForEveryone = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4) & PF4_DELETEFORALL) != 0;
+ bForEveryone = (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, hContact) & PF4_DELETEFORALL) != 0;
}
bool OnInitDialog() override