diff --git a/Telegram/SourceFiles/api/api_send_progress.cpp b/Telegram/SourceFiles/api/api_send_progress.cpp index 7913babfd2..54d3c4e00e 100644 --- a/Telegram/SourceFiles/api/api_send_progress.cpp +++ b/Telegram/SourceFiles/api/api_send_progress.cpp @@ -141,7 +141,7 @@ void SendProgressManager::send(const Key &key, int progress) { MTP_int(key.topMsgId), action )).done([=](const MTPBool &result, mtpRequestId requestId) { - done(result, requestId); + done(requestId); }).send(); _requests.emplace(key, requestId); @@ -171,9 +171,7 @@ bool SendProgressManager::skipRequest(const Key &key) const { } } -void SendProgressManager::done( - const MTPBool &result, - mtpRequestId requestId) { +void SendProgressManager::done(mtpRequestId requestId) { for (auto i = _requests.begin(), e = _requests.end(); i != e; ++i) { if (i->second == requestId) { _requests.erase(i); diff --git a/Telegram/SourceFiles/api/api_send_progress.h b/Telegram/SourceFiles/api/api_send_progress.h index 037edf6de8..0a44b1907e 100644 --- a/Telegram/SourceFiles/api/api_send_progress.h +++ b/Telegram/SourceFiles/api/api_send_progress.h @@ -90,7 +90,7 @@ private: bool updated(const Key &key, bool doing); void send(const Key &key, int progress); - void done(const MTPBool &result, mtpRequestId requestId); + void done(mtpRequestId requestId); [[nodiscard]] bool skipRequest(const Key &key) const;