mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-19 17:17:48 +01:00
Avoid speculative message deletion from cache.
This commit is contained in:
parent
1d5dc9e5e8
commit
428f438e4f
@ -7876,7 +7876,6 @@ td::Status Client::process_delete_message_query(PromisedQueryPtr &query) {
|
|||||||
|
|
||||||
check_message(chat_id, message_id, false, AccessRights::Write, "message to delete", std::move(query),
|
check_message(chat_id, message_id, false, AccessRights::Write, "message to delete", std::move(query),
|
||||||
[this](int64 chat_id, int64 message_id, PromisedQueryPtr query) {
|
[this](int64 chat_id, int64 message_id, PromisedQueryPtr query) {
|
||||||
delete_message(chat_id, message_id, false);
|
|
||||||
send_request(make_object<td_api::deleteMessages>(chat_id, td::vector<int64>{message_id}, true),
|
send_request(make_object<td_api::deleteMessages>(chat_id, td::vector<int64>{message_id}, true),
|
||||||
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user