diff --git a/Telegram/SourceFiles/ui/effects/credits_graphics.cpp b/Telegram/SourceFiles/ui/effects/credits_graphics.cpp index 925c936dab..b71bb8caad 100644 --- a/Telegram/SourceFiles/ui/effects/credits_graphics.cpp +++ b/Telegram/SourceFiles/ui/effects/credits_graphics.cpp @@ -346,7 +346,7 @@ PaintRoundImageCallback GenerateCreditsPaintEntryCallback( rpl::single(rpl::empty_value()) | rpl::then( photo->session().downloaderTaskFinished() - ) | rpl::on_next([=] { + ) | rpl::on_next([=, state = state.get()] { using Size = Data::PhotoSize; if (const auto large = state->view->image(Size::Large)) { state->imagePtr = large; @@ -396,7 +396,7 @@ PaintRoundImageCallback GenerateCreditsPaintEntryCallback( rpl::single(rpl::empty_value()) | rpl::then( video->session().downloaderTaskFinished() - ) | rpl::on_next([=] { + ) | rpl::on_next([=, state = state.get()] { if (const auto thumbnail = state->view->thumbnail()) { state->imagePtr = thumbnail; }