diff --git a/Telegram/SourceFiles/mtproto/concurrent_sender.cpp b/Telegram/SourceFiles/mtproto/concurrent_sender.cpp index 7230a260d3..043053da14 100644 --- a/Telegram/SourceFiles/mtproto/concurrent_sender.cpp +++ b/Telegram/SourceFiles/mtproto/concurrent_sender.cpp @@ -206,8 +206,8 @@ void ConcurrentSender::senderRequestCancel(mtpRequestId requestId) { void ConcurrentSender::senderRequestCancelAll() { auto list = std::vector(_requests.size()); - for (const auto &[requestId, handlers] : base::take(_requests)) { - list.push_back(requestId); + for (const auto &pair : base::take(_requests)) { + list.push_back(pair.first); } with_instance([list = std::move(list)](not_null instance) { for (const auto requestId : list) {