Fix build with Clang.

This commit is contained in:
John Preston 2020-02-21 18:02:43 +04:00
parent 28032e5e0d
commit d83cf0e560
1 changed files with 1 additions and 1 deletions

View File

@ -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{