diff options
-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;
}
|