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 /include | |
parent | 9aee9deca972b405a09033456ec2f270eea96cd3 (diff) |
fixes #4466 (Telegram: при очистке истории канала нужно блокировать опции про удаление истории с сервера)
Diffstat (limited to 'include')
-rw-r--r-- | include/m_core.h | 2 | ||||
-rw-r--r-- | include/m_protosvc.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/m_core.h b/include/m_core.h index c3e3df35a6..71fad47b41 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -319,6 +319,8 @@ MIR_CORE_DLL(int) mir_vsnwprintf(_Pre_notnull_ _Always_(_Post_z_) wchar_t *bu struct PROTO_INTERFACE;
+MIR_APP_DLL(bool) Proto_CanDeleteHistory(const char *szModule, MCONTACT hContact);
+
MIR_APP_DLL(INT_PTR) ProtoBroadcastAck(const char *szModule, MCONTACT hContact, int type, int result, HANDLE hProcess, LPARAM lParam = 0);
MIR_APP_DLL(void) ProtoBroadcastAsync(const char *szModule, MCONTACT hContact, int type, int result, HANDLE hProcess, LPARAM lParam = 0);
diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 7f33cf5e2b..40537d2209 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -588,6 +588,13 @@ struct PROTOFILERESUME #define PS_EMPTY_SRV_HISTORY "/EmptyServerHistory"
///////////////////////////////////////////////////////////////////////////////
+// Checks that server history for a contact can be removed
+// wParam = hContact
+// lParam = 0
+
+#define PS_CAN_EMPTY_HISTORY "/CanEmptyHistory"
+
+///////////////////////////////////////////////////////////////////////////////
// SENDING SERVICES
// these should be called with ProtoChainSend()
|