diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-05 11:47:21 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-05 11:47:21 +0300 |
commit | 4b53f58821f7adf0fdbe25af50c929927684e04e (patch) | |
tree | 0cc58cebdee74504d895575c65191df721d02930 | |
parent | 598c58cef36537d6ba12ec329c616a6f43b2d2a5 (diff) |
fixes #4451 (ICQ: при удалении контакта история с сервера не удаляется)
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 3 | ||||
-rw-r--r-- | src/mir_app/src/clui.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 5c3316484b..b1bc3b6c6f 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -135,9 +135,6 @@ bool CTelegramProto::OnContactDeleted(MCONTACT hContact, uint32_t flags) pUser->wszLastName = getMStringW(hContact, "LastName"); } - if (flags & CDF_DEL_HISTORY) - SvcEmptyServerHistory(hContact, flags); - if (flags & CDF_DEL_CONTACT) { TD::array<TD::int53> ids; ids.push_back(id); diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp index d635090039..e21acbd1af 100644 --- a/src/mir_app/src/clui.cpp +++ b/src/mir_app/src/clui.cpp @@ -237,6 +237,9 @@ static INT_PTR MenuItem_DeleteContact(WPARAM hContact, LPARAM lParam) }
}
+ if (options & CDF_DEL_HISTORY)
+ CallContactService(hContact, PS_EMPTY_SRV_HISTORY, hContact, options);
+
db_delete_contact(hContact, options);
return 0;
}
|