From 06e159dd5fdcf09d98ca013ce7a1231bf0751205 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jan 2024 16:16:01 +0300 Subject: Telegram: activating flags for deleting contact --- src/mir_app/src/clui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp index 7af3cbcdf3..8533d95bca 100644 --- a/src/mir_app/src/clui.cpp +++ b/src/mir_app/src/clui.cpp @@ -217,9 +217,6 @@ static INT_PTR MenuItem_DeleteContact(WPARAM hContact, LPARAM lParam) if (dlg.bForEveryone) options |= CDF_FOR_EVERYONE; - if (dlg.bDelHistory) - CallContactService(hContact, PS_EMPTY_SRV_HISTORY, hContact, options); - int status = Proto_GetStatus(dlg.szProto); if (status == ID_STATUS_OFFLINE || IsStatusConnecting(status)) { // Set a flag so we remember to delete the contact when the protocol goes online the next time @@ -228,7 +225,7 @@ static INT_PTR MenuItem_DeleteContact(WPARAM hContact, LPARAM lParam) TranslateT("This contact is on an instant messaging system which stores its contact list on a central server. The contact will be removed from the server and from your contact list when you next connect to that network."), TranslateT("Delete contact"), MB_ICONINFORMATION | MB_OK); } - else db_delete_contact(hContact); + else db_delete_contact(hContact, options); return 0; } -- cgit v1.2.3