mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-26 18:18:27 +00: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),
|
||||
[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),
|
||||
td::make_unique<TdOnOkQueryCallback>(std::move(query)));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user