From d83cf0e5603408561cc315f5594d596653830dba Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 21 Feb 2020 18:02:43 +0400 Subject: [PATCH] Fix build with Clang. --- Telegram/SourceFiles/data/data_histories.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_histories.cpp b/Telegram/SourceFiles/data/data_histories.cpp index 449f900eed..c35c241057 100644 --- a/Telegram/SourceFiles/data/data_histories.cpp +++ b/Telegram/SourceFiles/data/data_histories.cpp @@ -627,7 +627,7 @@ void Histories::finishSentRequest( } if (!state->postponed.empty() && !postponeHistoryRequest(*state)) { for (auto &[id, postponed] : base::take(state->postponed)) { - const auto requestId = postponed.generator([=] { + const auto requestId = postponed.generator([=, id=id] { checkPostponed(history, id); }); state->sent.emplace(id, SentRequest{